code: def norm_write(data_def):
      sess_scans = scans_for_fnames(
          fnames_presuffix(data_def["functionals"], "a")
      )
      matname = fname_presuffix(
          data_def["anatomical"], suffix="_seg_sn.mat", use_ext=False
      )
      subj = {
          "matname": np.zeros((1,), dtype=object),
          "resample": np.vstack(sess_scans.flat),
      }
      subj["matname"][0] = matname
      roptions = {
          "preserve": False,
          "bb": np.array([[-78, -112, -50], [78, 76, 85.0]]),
          "vox": fltcols([2.0, 2.0, 2.0]),
          "interp": 1.0,
          "wrap": [0.0, 0.0, 0.0],
      }
      nwinfo = make_job(
          "spatial",
          "normalise",
          [
              {
                  "write": {
                      "subj": subj,
                      "roptions": roptions,
                  }
              }
          ],
      )
      run_jobdef(nwinfo)
      # knock out the list of images, replacing with only one
      subj["resample"] = np.zeros((1,), dtype=object)
      subj["resample"][0] = data_def["anatomical"]
      roptions["interp"] = 4.0
      run_jobdef(nwinfo)
  
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 7 for calling a global function with example usage: norm_write(data_def) without return types