code: def test_max_pooling2d(
      self, pool_size, strides, padding, data_format
  ):
      inputs = np.arange(100, dtype="float32").reshape((1, 5, 5, 4))
  
      layer = layers.MaxPooling2D(
          pool_size=pool_size,
          strides=strides,
          padding=padding,
          data_format=data_format,
      )
      outputs = layer(inputs)
      expected = np_maxpool2d(
          inputs, pool_size, strides, padding, data_format
      )
      self.assertAllClose(outputs, expected)
  
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from numpy.lib.stride_tricks import as_strided
  from keras import layers
  from keras import testing
label_desc: Use image node_id 2 for calling the MaxPoolingCorrectnessTest obj's underlying member method code with example usage: obj.test_max_pooling2d(pool_size, strides, padding, data_format) without return types