code: def smooth(data_def, fwhm=8.0):
      try:
          len(fwhm)
      except TypeError:
          fwhm = [fwhm] * 3
      fwhm = np.asarray(fwhm, dtype=np.float64).reshape(1, 3)
      sess_scans = scans_for_fnames(
          fnames_presuffix(data_def["functionals"], "wa")
      )
      sinfo = make_job(
          "spatial",
          "smooth",
          {
              "data": np.vstack(sess_scans.flat),
              "fwhm": fwhm,
              "dtype": 0,
          },
      )
      run_jobdef(sinfo)
  
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 8 for calling a global function with example usage: smooth(data_def, fwhm) without return types