class_docstr: Train the classifier based on your own FEAT/MELODIC output directory.
class_docstr_tok: ["Train","the","classifier","based","on","your","own","FEAT\/MELODIC","output","directory","."]
code: def _list_outputs(self):
      outputs = self.output_spec().get()
      if isdefined(self.inputs.trained_wts_filestem):
          outputs["trained_wts_file"] = os.path.abspath(
              self.inputs.trained_wts_filestem + ".RData"
          )
      else:
          outputs["trained_wts_file"] = os.path.abspath(
              "trained_wts_file.RData"
          )
      return outputs
  
imports: from ..base import TraitedSpec, CommandLineInputSpec, CommandLine, InputMultiPath, OutputMultiPath, BaseInterface, BaseInterfaceInputSpec, traits, Directory, File, isdefined
  import os
label_desc: Use image node_id 1 for calling the Training obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs