code: def test_with_kernel_size_2(self):
      heatmaps_arr = np.float32(
          [
              [0.0, 0.0, 0.5, 1.0],
              [0.0, 0.0, 0.5, 1.0],
              [0.0, 0.0, 0.5, 1.0],
              [0.0, 0.0, 0.5, 1.0],
          ]
      )
      heatmaps = ia.HeatmapsOnImage(heatmaps_arr, shape=(4, 4, 3))
  
      heatmaps_pooled = heatmaps.max_pool(2)
      assert heatmaps_pooled.arr_0to1.shape == (2, 2, 1)
      assert np.allclose(
          heatmaps_pooled.arr_0to1[:, :, 0],
          np.float32([[0.0, 1.0], [0.0, 1.0]]),
      )
  
imports: from __future__ import print_function, division, absolute_import
  import sys
  import numpy
  import six.moves
  import imgaug
label_desc: Use image node_id 1 for calling the TestHeatmapsOnImage_max_pool obj's underlying member method code with example usage: obj.test_with_kernel_size_2() without return types