original_docstring: 
      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
      ----------
      input : 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.
      output : ndarray or dtype, optional
          The array in which to place the output, or the dtype of the returned
          array. Default is `numpy.float64`.
  
      Returns
      -------
      spline_filter1d : ndarray or None
          The filtered input. If `output` is given as a parameter, None is
          returned.
  
      
docstring: 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
  
  input : 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.
  output : ndarray or dtype, optional
  The array in which to place the output, or the dtype of the returned
  array.
  
  Returns
  
  spline_filter1d : ndarray or None
  The filtered input. If `output` is given as a parameter, None is
  returned.
docstring_tokens: 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 input : 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 . output : ndarray or dtype optional The array in which to place the output or the dtype of the returned array . Returns spline_filter1d : ndarray or None The filtered input . If ` output ` is given as a parameter None is returned .
code: def spline_filter1d(input, order=3, axis=-1, output=numpy.float64):
      """
      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
      ----------
      input : 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.
      output : ndarray or dtype, optional
          The array in which to place the output, or the dtype of the returned
          array. Default is `numpy.float64`.
  
      Returns
      -------
      spline_filter1d : ndarray or None
          The filtered input. If `output` is given as a parameter, None is
          returned.
  
      """
      if order < 0 or order > 5:
          raise RuntimeError('spline order not supported')
      input = numpy.asarray(input)
      if numpy.iscomplexobj(input):
          raise TypeError('Complex type not supported')
      output, return_value = _ni_support._get_output(output, input)
      if order in [0, 1]:
          output[...] = numpy.array(input)
      else:
          axis = _ni_support._check_axis(axis, input.ndim)
          _nd_image.spline_filter1d(input, order, axis, output)
      return return_value
code_tokens: def spline_filter1d ( input , order = 3 , axis = - 1 , output = numpy . float64 ) : if order < 0 or order > 5 : raise RuntimeError ( 'spline order not supported' ) input = numpy . asarray ( input ) if numpy . iscomplexobj ( input ) : raise TypeError ( 'Complex type not supported' ) output , return_value = _ni_support . _get_output ( output , input ) if order in [ 0 , 1 ] : output [ ... ] = numpy . array ( input ) else : axis = _ni_support . _check_axis ( axis , input . ndim ) _nd_image . spline_filter1d ( input , order , axis , output ) return return_value
short_docstring: Calculates a one-dimensional spline filter along the given axis.
short_docstring_tokens: Calculates a one - dimensional spline filter along the given axis .
comment: """
      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
      ----------
      input : 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.
      output : ndarray or dtype, optional
          The array in which to place the output, or the dtype of the returned
          array. Default is `numpy.float64`.
  
      Returns
      -------
      spline_filter1d : ndarray or None
          The filtered input. If `output` is given as a parameter, None is
          returned.
  
      """