class_docstr: Manipulates an existing transform file generated with elastix
  
  Example
  -------
  
  >>> from nipype.interfaces.elastix import EditTransform
  >>> tfm = EditTransform()
  >>> tfm.inputs.transform_file = 'TransformParameters.0.txt'  # doctest: +SKIP
  >>> tfm.inputs.reference_image = 'fixed1.nii'  # doctest: +SKIP
  >>> tfm.inputs.output_type = 'unsigned char'
  >>> tfm.run() # doctest: +SKIP
code: def _get_outfile(self):
      val = getattr(self, "_out_file")
      if val is not None and val != "":
          return val
  
      if isdefined(self.inputs.output_file):
          setattr(self, "_out_file", self.inputs.output_file)
          return self.inputs.output_file
  
      out_file = op.abspath(op.basename(self.inputs.transform_file))
      setattr(self, "_out_file", out_file)
      return out_file
  
file_path: nipype/nipype/interfaces/elastix/utils.py
imports: import os.path
  from ...None import logging
  from ..base import BaseInterface, BaseInterfaceInputSpec, isdefined, TraitedSpec, File, traits
label_desc: Use image node_id 3 for calling the EditTransform obj's underlying member method code with example usage: obj._get_outfile() and returns: out_file, val, self