code: def shift(
      array,
      shift,
      out=None,
      order=3,
      mode="constant",
      cval=0.0,
      prefilter=True,
      output=None,
  ):
      """
      Shift an array.
  
      The array is shifted using spline interpolation of the requested order.
      Points outside the boundaries of the input are filled according to the
      given mode.
  
      Parameters
      ----------
      array : ndarray
          The input array.
      shift : float or sequence, optional
          The shift along the axes. If a float, `shift` is the same for each
          axis. If a sequence, `shift` should contain one value for each axis.
      out : ndarray or dtype, optional
          The array in which to place the output, or the dtype of the returned
          array.
      order : int, optional
          The order of the spline interpolation, default is 3.
          The order has to be in the range 0-5.
      mode : str, optional
          Points outside the boundaries of the input are filled according
          to the given mode ('constant', 'nearest', 'reflect' or 'wrap').
          Default is 'constant'.
      cval : scalar, optional
          Value used for points outside the boundaries of the input if
          ``mode='constant'``. Default is 0.0
      prefilter : bool, optional
          The parameter prefilter determines if the input is pre-filtered with
          `spline_filter` before interpolation (necessary for spline
          interpolation of order > 1).  If False, it is assumed that the input is
          already filtered. Default is True.
  
      Returns
      -------
      return_value : ndarray
          The shifted input.
  
      """
      array = _maybe_filter(
          array, order, "interpolate.shift", prefilter, dtype=np.float64
      )
      _check_mode(mode, cval, "interpolation.shift")
      output = internal._get_output(
          array,
          out,
          "interpolate.shift",
          dtype=np.float64,
          output=output,
      )
      shift = np.ascontiguousarray(shift, dtype=np.float64)
      shift *= -1
      _interpolate.zoom_shift(
          array, None, shift, output, order, mode2int[mode], cval
      )
      return output
  
file_path: mahotas/mahotas/interpolate.py
imports: import numpy
  from .None import internal
  from .None import _interpolate
  from ._filters import mode2int, modes, _check_mode
label_desc: Use image node_id 6 for calling a global function with example usage: shift(array, shift, out, order, mode, cval, prefilter, output) and returns: output