keras/src/layers/pooling/global_max_pooling3d.py/GlobalMaxPooling3D/call
class GlobalMaxPooling3D:    def call(self, inputs):
        if self.data_format == "channels_last":
            return ops.max(inputs, axis=[1, 2, 3], keepdims=self.keepdims)
        return ops.max(inputs, axis=[2, 3, 4], keepdims=self.keepdims)