class_docstr: Warps an image from one space to another
  
  Examples
  --------
  
  >>> from nipype.interfaces.ants import WarpImageMultiTransform
  >>> wimt = WarpImageMultiTransform()
  >>> wimt.inputs.input_image = 'structural.nii'
  >>> wimt.inputs.reference_image = 'ants_deformed.nii.gz'
  >>> wimt.inputs.transformation_series = ['ants_Warp.nii.gz','ants_Affine.txt']
  >>> wimt.cmdline
  'WarpImageMultiTransform 3 structural.nii structural_wimt.nii -R ants_deformed.nii.gz ants_Warp.nii.gz ants_Affine.txt'
  
  >>> wimt = WarpImageMultiTransform()
  >>> wimt.inputs.input_image = 'diffusion_weighted.nii'
  >>> wimt.inputs.reference_image = 'functional.nii'
  >>> wimt.inputs.transformation_series = ['func2anat_coreg_Affine.txt','func2anat_InverseWarp.nii.gz',     'dwi2anat_Warp.nii.gz','dwi2anat_coreg_Affine.txt']
  >>> wimt.inputs.invert_affine = [1]  # this will invert the 1st Affine file: 'func2anat_coreg_Affine.txt'
  >>> wimt.cmdline
  'WarpImageMultiTransform 3 diffusion_weighted.nii diffusion_weighted_wimt.nii -R functional.nii -i func2anat_coreg_Affine.txt func2anat_InverseWarp.nii.gz dwi2anat_Warp.nii.gz dwi2anat_coreg_Affine.txt'
class_docstr_tok: ["Warps","an","image","from","one","space","to","another","Examples","--","--","--","--",">",">",">","from","nipype.interfaces.ants","import","WarpImageMultiTransform",">",">",">","wimt","=","WarpImageMultiTransform","(",")",">",">",">","wimt.inputs.input_image","=","'structural.nii'",">",">",">","wimt.inputs.reference_image","=","'ants_deformed.nii.gz'",">",">",">","wimt.inputs.transformation_series","=","[","'ants_Warp.nii.gz","'",",","'ants_Affine.txt","'","]",">",">",">","wimt.cmdline","'WarpImageMultiTransform","3","structural.nii","structural_wimt.nii","-R","ants_deformed.nii.gz","ants_Warp.nii.gz","ants_Affine.txt'",">",">",">","wimt","=","WarpImageMultiTransform","(",")",">",">",">","wimt.inputs.input_image","=","'diffusion_weighted.nii'",">",">",">","wimt.inputs.reference_image","=","'functional.nii'",">",">",">","wimt.inputs.transformation_series","=","[","'func2anat_coreg_Affine.txt","'",",","'func2anat_InverseWarp.nii.gz","'",",","'dwi2anat_Warp.nii.gz","'",",","'dwi2anat_coreg_Affine.txt","'","]",">",">",">","wimt.inputs.invert_affine","=","[","1","]","#","this","will","invert","the","1st","Affine","file",":","'func2anat_coreg_Affine.txt'",">",">",">","wimt.cmdline","'WarpImageMultiTransform","3","diffusion_weighted.nii","diffusion_weighted_wimt.nii","-R","functional.nii","-i","func2anat_coreg_Affine.txt","func2anat_InverseWarp.nii.gz","dwi2anat_Warp.nii.gz","dwi2anat_coreg_Affine.txt","'"]
code: def _list_outputs(self):
      outputs = self._outputs().get()
      if isdefined(self.inputs.output_image):
          outputs["output_image"] = os.path.abspath(
              self.inputs.output_image
          )
      else:
          outputs["output_image"] = os.path.abspath(
              self._gen_filename("output_image")
          )
      return outputs
  
imports: import os
  from .base import ANTSCommand, ANTSCommandInputSpec
  from ..base import TraitedSpec, File, traits, isdefined, InputMultiObject
  from ...utils.filemanip import split_filename
label_desc: Use image node_id 3 for calling the WarpImageMultiTransform obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs