def _get_sph_harm():
 if (LooseVersion(sp_version) < LooseVersion('0.17.1')):
  sph_harm = _sph_harm
 else:
  from scipy.special import sph_harm
 return sph_harm

def _get_sph_harm ( ) : if ( LooseVersion ( sp_version ) < LooseVersion ( '0.17.1' ) ) : sph_harm = _sph_harm else : from scipy . special import sph_harm return sph_harm
helper to get a usable spherical harmonic function .