class_docstr: Uses spm to convert DICOM files to nii or img+hdr.
  
  Examples
  --------
  
  >>> import nipype.interfaces.spm.utils as spmu
  >>> di = spmu.DicomImport()
  >>> di.inputs.in_files = ['functional_1.dcm', 'functional_2.dcm']
  >>> di.run() # doctest: +SKIP
class_docstr_tok: ["Uses","spm","to","convert","DICOM","files","to","nii","or","img+hdr",".","Examples","--","--","--","--",">",">",">","import","nipype.interfaces.spm.utils","as","spmu",">",">",">","di","=","spmu.DicomImport","(",")",">",">",">","di.inputs.in_files","=","[","'functional_1.dcm","'",",","'functional_2.dcm","'","]",">",">",">","di.run","(",")","#","doctest",":","+SKIP"]
docstr: Convert input to appropriate format for spm
docstr_tok: ["Convert","input","to","appropriate","format","for","spm"]
code: def _format_arg(self, opt, spec, val):
      """Convert input to appropriate format for spm"""
      if opt == "in_files":
          return np.array(val, dtype=object)
      if opt == "output_dir":
          return np.array([val], dtype=object)
      if opt == "output_dir":
          return os.path.abspath(val)
      if opt == "icedims":
          if val:
              return 1
          return 0
      return super()._format_arg(opt, spec, val)
  
imports: import os
  import numpy
  from ...utils.filemanip import split_filename, fname_presuffix, ensure_list, simplify_list
  from ..base import TraitedSpec, isdefined, File, traits, OutputMultiPath, InputMultiPath
  from .base import SPMCommandInputSpec, SPMCommand, scans_for_fnames, scans_for_fname
label_desc: Use image node_id 1 for calling the DicomImport obj's underlying member method code with example usage: obj._format_arg(opt, spec, val) and returns: super, np, np, os, int, int