code: def max_pooling_1d(
      x, ksize, stride=None, pad=0, cover_all=True, return_indices=False
  ):
      """1-dimensional spatial max pooling function.
  
      .. warning::
  
          This feature is experimental. The interface can change in the future.
  
      .. note::
  
          This function calls :func:`~chainer.functions.max_pooling_nd`
          internally, so see the details of the behavior in
          the documentation of :func:`~chainer.functions.max_pooling_nd`.
  
      """
      if len(x.shape[2:]) != 1:
          raise ValueError(
              "The number of dimensions under channel dimension of the input "
              "'x' should be 1. But the actual ndim was {}.".format(
                  len(x.shape[2:])
              )
          )
      return max_pooling_nd(
          x, ksize, stride, pad, cover_all, return_indices
      )
  
imports: import functools
  from operator import mul
  import numpy
  import six
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer.backends import intel64
  from chainer import configuration
  from chainer import function_node
  from chainer.functions.pooling import max_pooling_nd_kernel
  from chainer.functions.pooling import pooling_nd
  from chainer.utils import conv_nd
  import chainerx
label_desc: Use image node_id 2 for calling a global function with example usage: max_pooling_1d(x, ksize, stride, pad, cover_all, return_indices) and returns: max_pooling_nd