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 _list_outputs(self):
      from glob import glob
  
      outputs = self._outputs().get()
      od = os.path.abspath(self.inputs.output_dir)
  
      ext = self.inputs.format
      if self.inputs.output_dir_struct == "flat":
          outputs["out_files"] = glob(os.path.join(od, "*.%s" % ext))
      elif self.inputs.output_dir_struct == "series":
          outputs["out_files"] = glob(
              os.path.join(od, os.path.join("*", "*.%s" % ext))
          )
      elif self.inputs.output_dir_struct in [
          "patid",
          "date_time",
          "patname",
      ]:
          outputs["out_files"] = glob(
              os.path.join(od, os.path.join("*", "*", "*.%s" % ext))
          )
      elif self.inputs.output_dir_struct == "patid_date":
          outputs["out_files"] = glob(
              os.path.join(
                  od, os.path.join("*", "*", "*", "*.%s" % ext)
              )
          )
      return outputs
  
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 3 for calling the DicomImport obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs