code: def test_max_pool_invalid(
      device, x_shape, ksize, stride, pad, cover_all, float_dtype
  ):
      x = numpy.random.uniform(-1, 1, x_shape).astype(float_dtype)
      x = chainerx.array(x)
      with pytest.raises(chainerx.DimensionError):
          chainerx.max_pool(
              x,
              ksize=ksize,
              stride=stride,
              pad=pad,
              cover_all=cover_all,
          )
  
imports: import functools
  from operator import mul
  import unittest
  import chainer
  import numpy
  import pytest
  import chainerx
  from chainerx_tests import op_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_max_pool_invalid(device, x_shape, ksize, stride, pad, cover_all, float_dtype) without return types