Production of this compound has not been established in any fungus (at least to my information) but in bacteria such as halophilic phototrophic bacteria of the genus Ectothiorhodospira and is only accumulated within the cytoplasm under certain growth conditions which seems to serve an osmoregulatory function.