code: def scans_for_fnames(fnames):
      n_sess = len(fnames)
      sess_scans = np.zeros((1, n_sess), dtype=object)
      for sess in range(n_sess):
          sess_scans[0, sess] = scans_for_fname(fnames[sess])
      return sess_scans
  
file_path: nipy/nipy/interfaces/spm.py
imports: import os
  import numpy
  from nibabel import load
  from nibabel.tmpdirs import InTemporaryDirectory
  from scipy.io import savemat
  from .matlab import run_matlab_script
label_desc: Use image node_id 5 for calling a global function with example usage: scans_for_fnames(fnames) and returns: sess_scans