class_docstr: Simple interface to trim a few volumes from a 4d fmri nifti file
  
  Examples
  --------
  >>> from nipype.interfaces.nipy.preprocess import Trim
  >>> trim = Trim()
  >>> trim.inputs.in_file = 'functional.nii'
  >>> trim.inputs.begin_index = 3 # remove 3 first volumes
  >>> res = trim.run() # doctest: +SKIP
code: def _list_outputs(self):
      outputs = self.output_spec().get()
      outputs["out_file"] = self.inputs.out_file
      if not isdefined(outputs["out_file"]):
          outputs["out_file"] = fname_presuffix(
              self.inputs.in_file,
              newpath=os.getcwd(),
              suffix=self.inputs.suffix,
          )
      outputs["out_file"] = os.path.abspath(outputs["out_file"])
      return outputs
  
imports: import os
  import nibabel
  import numpy
  from ...utils.filemanip import split_filename, fname_presuffix
  from .base import NipyBaseInterface, have_nipy
  from ..base import TraitedSpec, traits, BaseInterfaceInputSpec, isdefined, File, InputMultiPath, OutputMultiPath
label_desc: Use image node_id 2 for calling the Trim obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs