code: def get_fdata(data_path, subj_id):
      data_def = {}
      subject_path = pjoin(data_path, f"fiac{subj_id}")
      data_def["functionals"] = sorted(
          glob(pjoin(subject_path, "functional_*.nii"))
      )
      anatomicals = glob(pjoin(subject_path, "anatomical.nii"))
      if len(anatomicals) == 1:
          data_def["anatomical"] = anatomicals[0]
      elif len(anatomicals) == 0:
          data_def["anatomical"] = None
      else:
          raise ValueError("Too many anatomicals")
      return data_def
  
file_path: nipy/examples/interfaces/process_fiac.py
imports: import sys
  from glob import glob
  from os.path import join
  import numpy
  from nipy.interfaces.spm import fltcols, fname_presuffix, fnames_presuffix, make_job, run_jobdef, scans_for_fnames, spm_info
label_desc: Use image node_id 1 for calling a global function with example usage: get_fdata(data_path, subj_id) and returns: data_def