class_docstr: An interface to reslicing diffusion datasets.
  See
  http://nipy.org/dipy/examples_built/reslice_datasets.html#example-reslice-datasets.
  
  Example
  -------
  
  >>> import nipype.interfaces.dipy as dipy
  >>> reslice = dipy.Resample()
  >>> reslice.inputs.in_file = 'diffusion.nii'
  >>> reslice.run() # doctest: +SKIP
class_docstr_tok: ["An","interface","to","reslicing","diffusion","datasets",".","See","http",":","\/\/nipy.org\/dipy\/examples_built\/reslice_datasets.html","#","example-reslice-datasets",".","Example","--","--","--","-",">",">",">","import","nipype.interfaces.dipy","as","dipy",">",">",">","reslice","=","dipy.Resample","(",")",">",">",">","reslice.inputs.in_file","=","'diffusion.nii'",">",">",">","reslice.run","(",")","#","doctest",":","+SKIP"]
code: def _gen_outfilename(self):
      fname, fext = op.splitext(op.basename(self.inputs.in_file))
      if fext == ".gz":
          fname, fext2 = op.splitext(fname)
          fext = fext2 + fext
      return op.abspath(f"{fname}_reslice{fext}")
  
imports: import os.path
  import nibabel
  import numpy
  from looseversion import LooseVersion
  from ...None import logging
  from ..base import traits, TraitedSpec, File, isdefined
  from .base import HAVE_DIPY, dipy_version, dipy_to_nipype_interface, get_dipy_workflows, DipyBaseInterface
label_desc: Use image node_id 3 for calling the Resample obj's underlying member method code with example usage: obj._gen_outfilename() and returns: op