code: def test_max_pool1d(
      self, input_shape, kernel_size, stride, pad, backend
  ):
      if pad > kernel_size / 2:
          # Because this test is xfail, we have to fail rather than
          # just return here, otherwise these test cases unexpectedly pass.
          # This can be changed to `return` once the above radar
          # is fixed and the test is no longer xfail.
          raise ValueError("pad must be less than half the kernel size")
      model = nn.MaxPool1d(kernel_size, stride, pad, ceil_mode=False)
      run_compare_torch(input_shape, model, backend=backend)
  
imports: import sys
  from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.testing_reqs import *
  from .testing_utils import *
label_desc: Use image node_id 1 for calling the TestMaxPool obj's underlying member method code with example usage: obj.test_max_pool1d(input_shape, kernel_size, stride, pad, backend) without return types