class_docstr: Interface for executable reg_resample from NiftyReg platform.
  
  Tool to resample floating image in the space of a defined reference image
  given a transformation parametrisation generated by reg_aladin, reg_f3d or
  reg_transform
  
  `Source code <https://cmiclab.cs.ucl.ac.uk/mmodat/niftyreg>`_
  
  Examples
  --------
  >>> from nipype.interfaces import niftyreg
  >>> node = niftyreg.RegResample()
  >>> node.inputs.ref_file = 'im1.nii'
  >>> node.inputs.flo_file = 'im2.nii'
  >>> node.inputs.trans_file = 'warpfield.nii'
  >>> node.inputs.inter_val = 'LIN'
  >>> node.inputs.omp_core_val = 4
  >>> node.cmdline
  'reg_resample -flo im2.nii -inter 1 -omp 4 -ref im1.nii -trans warpfield.nii -res im2_res.nii.gz'
class_docstr_tok: ["Interface","for","executable","reg_resample","from","NiftyReg","platform",".","Tool","to","resample","floating","image","in","the","space","of","a","defined","reference","image","given","a","transformation","parametrisation","generated","by","reg_aladin",",","reg_f3d","or","reg_transform","`","Source","code","<","https",":","\/\/cmiclab.cs.ucl.ac.uk\/mmodat\/niftyreg",">","`","_","Examples","--","--","--","--",">",">",">","from","nipype.interfaces","import","niftyreg",">",">",">","node","=","niftyreg.RegResample","(",")",">",">",">","node.inputs.ref_file","=","'im1.nii'",">",">",">","node.inputs.flo_file","=","'im2.nii'",">",">",">","node.inputs.trans_file","=","'warpfield.nii'",">",">",">","node.inputs.inter_val","=","'LIN'",">",">",">","node.inputs.omp_core_val","=","4",">",">",">","node.cmdline","'reg_resample","-flo","im2.nii","-inter","1","-omp","4","-ref","im1.nii","-trans","warpfield.nii","-res","im2_res.nii.gz","'"]
code: def _overload_extension(self, value, name=None):
      path, base, _ = split_filename(value)
      suffix = self.inputs.type
      return os.path.join(path, f"{base}_{suffix}.nii.gz")
  
imports: import os
  from ..base import TraitedSpec, File, traits, isdefined
  from .base import get_custom_path, NiftyRegCommand, NiftyRegCommandInputSpec
  from ...utils.filemanip import split_filename
label_desc: Use image node_id 2 for calling the RegResample obj's underlying member method code with example usage: obj._overload_extension(value, name) and returns: os