code: def maximum_filter1d(
      input,
      size,
      axis=-1,
      output=None,
      mode="reflect",
      cval=0.0,
      origin=0,
  ):
      """Compute the maximum filter along a single axis.
  
      Args:
          input (cupy.ndarray): The input array.
          size (int): Length of the maximum filter.
          axis (int): The axis of input along which to calculate. Default is -1.
          output (cupy.ndarray, dtype or None): The array in which to place the
              output. Default is is same dtype as the input.
          mode (str): The array borders are handled according to the given mode
              (``'reflect'``, ``'constant'``, ``'nearest'``, ``'mirror'``,
              ``'wrap'``). Default is ``'reflect'``.
          cval (scalar): Value to fill past edges of input if mode is
              ``'constant'``. Default is ``0.0``.
          origin (int): The origin parameter controls the placement of the
              filter, relative to the center of the current element of the
              input. Default is ``0``.
  
      Returns:
          cupy.ndarray: The result of the filtering.
  
      .. seealso:: :func:`scipy.ndimage.maximum_filter1d`
      """
      return _min_or_max_1d(
          input, size, axis, output, mode, cval, origin, "max"
      )
  
imports: import numpy
  import cupy
  from cupy import _core
  from cupy._core import internal
  from cupyx.scipy.ndimage import _util
  from cupyx.scipy.ndimage import _filters_core
  from cupyx.scipy.ndimage import _filters_generic
label_desc: Use image node_id 25 for calling a global function with example usage: maximum_filter1d(input, size, axis, output, mode, cval, origin) and returns: _min_or_max_1d