so it wouldn't be in the tomato itself. Fungi that grow inside the plant are called endophytes. I didn't see that term in the article, but it's possible they just didn't go into enough detail in the article (it was rather short).
http://en.wikipedia....Fungi#With_plants