code: def test_global_max_pooling3d(self, data_format, keepdims):
      def np_global_max_pool3d(x, data_format, keepdims):
          steps_axis = (
              [1, 2, 3] if data_format == "channels_last" else [2, 3, 4]
          )
          res = np.apply_over_axes(np.max, x, steps_axis)
          if not keepdims:
              res = res.squeeze()
          return res
  
      inputs = np.arange(360, dtype="float32").reshape((2, 3, 3, 5, 4))
      layer = layers.GlobalMaxPooling3D(
          data_format=data_format,
          keepdims=keepdims,
      )
      outputs = layer(inputs)
      expected = np_global_max_pool3d(inputs, data_format, keepdims)
      self.assertAllClose(outputs, expected)
  
file_path: keras/keras/layers/pooling/global_max_pooling_test.py
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from keras import layers
  from keras import testing
label_desc: Use image node_id 3 for calling the GlobalMaxPoolingCorrectnessTest obj's underlying member method code with example usage: obj.test_global_max_pooling3d(data_format, keepdims) and returns: res