def METHOD_NAME(self):
    test_utils.layer_test(
        keras.layers.GlobalMaxPooling3D,
        kwargs={"data_format": "channels_first", "keepdims": True},
        input_shape=(3, 4, 3, 4, 3),
        expected_output_shape=(None, 4, 1, 1, 1),
    )
    test_utils.layer_test(
        keras.layers.GlobalMaxPooling3D,
        kwargs={"data_format": "channels_last", "keepdims": True},
        input_shape=(3, 4, 3, 4, 3),
        expected_output_shape=(None, 1, 1, 1, 3),
    )