def no_spm():
 if ((u'NIPYPE_NO_MATLAB' in os.environ) or (Info.version() is None)):
  return True
 else:
  return False

def no_spm ( ) : if ( ( u'NIPYPE_NO_MATLAB' in os . environ ) or ( Info . version ( ) is None ) ) : return True else : return False
checks if spm is not installed used with pytest .