def _get_read_geometry():
 try:
  import nibabel as nib
  has_nibabel = True
 except ImportError:
  has_nibabel = False
 if (has_nibabel and (LooseVersion(nib.__version__) > LooseVersion('2.1.0'))):
  from nibabel.freesurfer import read_geometry
 else:
  read_geometry = _read_geometry
 return read_geometry

def _get_read_geometry ( ) : try : import nibabel as nib has_nibabel = True except ImportError : has_nibabel = False if ( has_nibabel and ( LooseVersion ( nib . __version__ ) > LooseVersion ( '2.1.0' ) ) ) : from nibabel . freesurfer import read_geometry else : read_geometry = _read_geometry return read_geometry
get the geometry reading function .