class_docstr: Uses spm to reslice a volume to a target image space or to a provided
  voxel size and bounding box
  
  Examples
  --------
  
  >>> import nipype.interfaces.spm.utils as spmu
  >>> r2ref = spmu.ResliceToReference()
  >>> r2ref.inputs.in_files = 'functional.nii'
  >>> r2ref.inputs.target = 'structural.nii'
  >>> r2ref.run() # doctest: +SKIP
class_docstr_tok: ["Uses","spm","to","reslice","a","volume","to","a","target","image","space","or","to","a","provided","voxel","size","and","bounding","box","Examples","--","--","--","--",">",">",">","import","nipype.interfaces.spm.utils","as","spmu",">",">",">","r2ref","=","spmu.ResliceToReference","(",")",">",">",">","r2ref.inputs.in_files","=","'functional.nii'",">",">",">","r2ref.inputs.target","=","'structural.nii'",">",">",">","r2ref.run","(",")","#","doctest",":","+SKIP"]
code: def _list_outputs(self):
      outputs = self._outputs().get()
      outputs["out_files"] = []
      for filename in self.inputs.in_files:
          _, fname = os.path.split(filename)
          outputs["out_files"].append(os.path.realpath("w%s" % fname))
      return outputs
  
imports: import os
  import numpy
  from ...utils.filemanip import split_filename, fname_presuffix, ensure_list, simplify_list
  from ..base import TraitedSpec, isdefined, File, traits, OutputMultiPath, InputMultiPath
  from .base import SPMCommandInputSpec, SPMCommand, scans_for_fnames, scans_for_fname
label_desc: Use image node_id 2 for calling the ResliceToReference obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs