docstr: Reslice data with new voxel resolution defined by ``new_vox_sz``
  
  Parameters
  ----------
  input_files : string
      Path to the input volumes. This path may contain wildcards to
      process multiple inputs at once.
  new_vox_size : variable float
      new voxel size.
  order : int, optional
      order of interpolation, from 0 to 5, for resampling/reslicing,
      0 nearest interpolation, 1 trilinear etc.. if you don't want any
      smoothing 0 is the option you need.
  mode : string, optional
      Points outside the boundaries of the input are filled according
      to the given mode 'constant', 'nearest', 'reflect' or 'wrap'.
  cval : float, optional
      Value used for points outside the boundaries of the input if
      mode='constant'.
  num_processes : int, optional
      Split the calculation to a pool of children processes. This only
      applies to 4D `data` arrays. Default is 1. If < 0 the maximal
      number of cores minus ``num_processes + 1`` is used (enter -1 to
      use as many cores as possible). 0 raises an error.
  out_dir : string, optional
      Output directory. (default current directory)
  out_resliced : string, optional
      Name of the resliced dataset to be saved.
code: def run(
      self,
      input_files,
      new_vox_size,
      order=1,
      mode="constant",
      cval=0,
      num_processes=1,
      out_dir="",
      out_resliced="resliced.nii.gz",
  ):
      """Reslice data with new voxel resolution defined by ``new_vox_sz``
  
      Parameters
      ----------
      input_files : string
          Path to the input volumes. This path may contain wildcards to
          process multiple inputs at once.
      new_vox_size : variable float
          new voxel size.
      order : int, optional
          order of interpolation, from 0 to 5, for resampling/reslicing,
          0 nearest interpolation, 1 trilinear etc.. if you don't want any
          smoothing 0 is the option you need.
      mode : string, optional
          Points outside the boundaries of the input are filled according
          to the given mode 'constant', 'nearest', 'reflect' or 'wrap'.
      cval : float, optional
          Value used for points outside the boundaries of the input if
          mode='constant'.
      num_processes : int, optional
          Split the calculation to a pool of children processes. This only
          applies to 4D `data` arrays. Default is 1. If < 0 the maximal
          number of cores minus ``num_processes + 1`` is used (enter -1 to
          use as many cores as possible). 0 raises an error.
      out_dir : string, optional
          Output directory. (default current directory)
      out_resliced : string, optional
          Name of the resliced dataset to be saved.
      """
  
      io_it = self.get_io_iterator()
  
      for inputfile, outpfile in io_it:
          data, affine, vox_sz = load_nifti(
              inputfile, return_voxsize=True
          )
          logging.info("Processing {0}".format(inputfile))
          new_data, new_affine = reslice(
              data,
              affine,
              vox_sz,
              new_vox_size,
              order,
              mode=mode,
              cval=cval,
              num_processes=num_processes,
          )
          save_nifti(outpfile, new_data, new_affine)
          logging.info("Resliced file save in {0}".format(outpfile))
  
imports: import logging
  from warnings import warn
  import numpy
  import nibabel
  from os.path import join
  from dipy.utils.optpkg import optional_package
  from dipy.align.imaffine import AffineMap
  from dipy.align.imwarp import SymmetricDiffeomorphicRegistration, DiffeomorphicMap
  from dipy.align.metrics import CCMetric, SSDMetric, EMMetric
  from dipy.align.reslice import reslice
  from dipy.align import affine_registration, motion_correction
  from dipy.align.streamlinear import slr_with_qbx
  from dipy.tracking.streamline import set_number_of_points
  from dipy.align.streamwarp import bundlewarp
  from dipy.core.gradients import mask_non_weighted_bvals, gradient_table
  from dipy.io.image import save_nifti, load_nifti, save_qa_metric
  from dipy.io.gradients import read_bvals_bvecs
  from dipy.tracking.streamline import transform_streamlines
  from dipy.workflows.workflow import Workflow
label_desc: Use image node_id 2 for calling the ResliceFlow obj's underlying member method code with example usage: obj.run(input_files, new_vox_size, order, mode, cval, num_processes, out_dir, out_resliced) without return types