class_docstr: Uses MRIcron's dcm2nii to convert dicom files
  
  Examples
  ========
  
  >>> from nipype.interfaces.dcm2nii import Dcm2nii
  >>> converter = Dcm2nii()
  >>> converter.inputs.source_names = ['functional_1.dcm', 'functional_2.dcm']
  >>> converter.inputs.gzip_output = True
  >>> converter.inputs.output_dir = '.'
  >>> converter.cmdline  # doctest: +ELLIPSIS
  'dcm2nii -a y -c y -b config.ini -v y -d y -e y -g y -i n -n y -o . -p y -x n -f n functional_1.dcm'
class_docstr_tok: ["Uses","MRIcron","'s","dcm2nii","to","convert","dicom","files","Examples","========",">",">",">","from","nipype.interfaces.dcm2nii","import","Dcm2nii",">",">",">","converter","=","Dcm2nii","(",")",">",">",">","converter.inputs.source_names","=","[","'functional_1.dcm","'",",","'functional_2.dcm","'","]",">",">",">","converter.inputs.gzip_output","=","True",">",">",">","converter.inputs.output_dir","=","'",".","'",">",">",">","converter.cmdline","#","doctest",":","+ELLIPSIS","'dcm2nii","-a","y","-c","y","-b","config.ini","-v","y","-d","y","-e","y","-g","y","-i","n","-n","y","-o",".","-p","y","-x","n","-f","n","functional_1.dcm","'"]
code: def _gen_filename(self, name):
      if name == "output_dir":
          return os.getcwd()
      elif name == "config_file":
          self._config_created = True
          config_file = "config.ini"
          with open(config_file, "w") as f:
              # disable interactive mode
              f.write("[BOOL]\nManualNIfTIConv=0\n")
          return config_file
      return None
  
imports: import os
  import re
  from copy import deepcopy
  import itertools
  import glob
  from glob import iglob
  from ..utils.filemanip import split_filename
  from .base import CommandLine, CommandLineInputSpec, InputMultiPath, traits, TraitedSpec, OutputMultiPath, isdefined, File, Directory, PackageInfo
label_desc: Use image node_id 5 for calling the Dcm2nii obj's underlying member method code with example usage: obj._gen_filename(name) and returns: None, os, config_file