code: def spline_filter1d(
      array, order=3, axis=-1, out=None, dtype=np.float64, output=None
  ):
      """
      Calculates a one-dimensional spline filter along the given axis.
  
      The lines of the array along the given axis are filtered by a
      spline filter. The order of the spline must be >= 2 and <= 5.
  
      Parameters
      ----------
      array : array_like
          The input array.
      order : int, optional
          The order of the spline, default is 3.
      axis : int, optional
          The axis along which the spline filter is applied. Default is the last
          axis.
      out : ndarray, optional
          The array in which to place the output
      dtype : dtype, optional
          The dtype to use for computation (default: np.float64)
  
      For compatibility with scipy.ndimage, you can pass a dtype as the
      ``output`` argument. This will work as having passed it as a dtype.
      However, this is deprecated and should not be used in new code.
  
      Returns
      -------
      return_value : ndarray or None
          The filtered input.
      """
      array = _check_interpolate(array, order, "spline_filter1d")
      if isinstance(out, type):  # pragma: no cover
          import warnings
  
          warnings.warn(
              "mahotas.interpolate.spline_filter1d: Use `dtype` for type instead of `out`",
              DeprecationWarning,
          )
          dtype = out
          out = None
      if isinstance(output, type):  # pragma: no cover
          import warnings
  
          warnings.warn(
              "mahotas.interpolate.spline_filter1d: Use `dtype` for type instead of `output`",
              DeprecationWarning,
          )
          dtype = output
          output = None
      output = internal._get_output(
          array,
          out,
          "interpolate.spline_filter1d",
          dtype=dtype,
          output=output,
      )
      output[...] = array
      axis = internal._get_axis(
          array, axis, "interpolate.spline_filter1d"
      )
      _interpolate.spline_filter1d(output, order, axis)
      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 2 for calling a global function with example usage: spline_filter1d(array, order, axis, out, dtype, output) and returns: output