def _is_mri_subject(subject, subjects_dir=None):
 subjects_dir = get_subjects_dir(subjects_dir, raise_error=True)
 return bool((_find_head_bem(subject, subjects_dir) or _find_head_bem(subject, subjects_dir, high_res=True)))

def _is_mri_subject ( subject , subjects_dir = None ) : subjects_dir = get_subjects_dir ( subjects_dir , raise_error = True ) return bool ( ( _find_head_bem ( subject , subjects_dir ) or _find_head_bem ( subject , subjects_dir , high_res = True ) ) )
check whether a directory in subjects_dir is an mri subject directory .