keras/src/layers/pooling/base_pooling.py/BasePooling/compute_output_shape
class BasePooling:    def compute_output_shape(self, input_shape):
        return compute_pooling_output_shape(
            input_shape,
            self.pool_size,
            self.strides,
            self.padding,
            self.data_format,
        )