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"]
code: def _run_interface(self, runtime):
      od = os.path.abspath(self.inputs.output_dir)
      if not os.path.isdir(od):
          os.mkdir(od)
      return super()._run_interface(runtime)
  
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 2 for calling the DicomImport obj's underlying member method code with example usage: obj._run_interface(runtime) and returns: super