code: def uniform_filter1d(
      input,
      size,
      axis=-1,
      output=None,
      mode="reflect",
      cval=0.0,
      origin=0,
  ):
      """Calculate a one-dimensional uniform filter along the given axis.
  
      The lines of the array along the given axis are filtered with a
      uniform filter of given size.
  
      Parameters
      ----------
      %(input)s
      size : int
          length of uniform filter
      %(axis)s
      %(output)s
      %(mode)s
      %(cval)s
      %(origin)s
  
      Examples
      --------
      >>> from scipy.ndimage import uniform_filter1d
      >>> uniform_filter1d([2, 8, 0, 4, 1, 9, 9, 0], size=3)
      array([4, 3, 4, 1, 4, 6, 6, 3])
      """
      input = numpy.asarray(input)
      if numpy.iscomplexobj(input):
          raise TypeError("Complex type not supported")
      axis = _ni_support._check_axis(axis, input.ndim)
      if size < 1:
          raise RuntimeError("incorrect filter size")
      output = _ni_support._get_output(output, input)
      if (size // 2 + origin < 0) or (size // 2 + origin >= size):
          raise ValueError("invalid origin")
      mode = _ni_support._extend_mode_to_code(mode)
      _nd_image.uniform_filter1d(
          input, size, axis, output, mode, cval, origin
      )
      return output
  
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numbers
  import numpy
  import operator
  from .None import _ni_support
  from .None import _nd_image
  from .None import _ni_docstrings
label_desc: Use image node_id 17 for calling a global function with example usage: uniform_filter1d(input, size, axis, output, mode, cval, origin) and returns: output