docstr: Appropriate warping function for the given interpolation type
  
  Returns the right warping function from vector_fields that must be
  called for the specified data dimension and interpolation type
  
  Parameters
  ----------
  interpolation : string, either 'linear' or 'nearest'
      specifies the type of interpolation used for image warping. It
      does not have any effect if `warp_coordinates` is True, in which
      case no interpolation is intended to be performed.
  warp_coordinates : Boolean,
      if False, then returns the right image warping function for this
      DiffeomorphicMap dimension and the specified `interpolation`. If
      True, then returns the right coordinate warping function.
code: def _get_warping_function(
      self, interpolation, warp_coordinates=False
  ):
      r"""Appropriate warping function for the given interpolation type
  
      Returns the right warping function from vector_fields that must be
      called for the specified data dimension and interpolation type
  
      Parameters
      ----------
      interpolation : string, either 'linear' or 'nearest'
          specifies the type of interpolation used for image warping. It
          does not have any effect if `warp_coordinates` is True, in which
          case no interpolation is intended to be performed.
      warp_coordinates : Boolean,
          if False, then returns the right image warping function for this
          DiffeomorphicMap dimension and the specified `interpolation`. If
          True, then returns the right coordinate warping function.
      """
      if self.dim == 2:
          if warp_coordinates:
              return vfu.warp_coordinates_2d
          if interpolation == "linear":
              return vfu.warp_2d
          else:
              return vfu.warp_2d_nn
      else:
          if warp_coordinates:
              return vfu.warp_coordinates_3d
          if interpolation == "linear":
              return vfu.warp_3d
          else:
              return vfu.warp_3d_nn
  
imports: import logging
  import abc
  import numpy
  import numpy.linalg
  import nibabel
  from nibabel.streamlines import ArraySequence
  from dipy.align import vector_fields
  from dipy.align import floating
  from dipy.align import VerbosityLevels
  from dipy.align import Bunch
  from dipy.align.scalespace import ScaleSpace
label_desc: Use image node_id 6 for calling the DiffeomorphicMap obj's underlying member method code with example usage: obj._get_warping_function(interpolation, warp_coordinates) and returns: vfu, vfu, vfu, vfu, vfu, vfu