keras/src/layers/pooling/base_global_pooling.py/BaseGlobalPooling/get_config
class BaseGlobalPooling:    def get_config(self):
        config = super().get_config()
        config.update(
            {
                "data_format": self.data_format,
                "keepdims": self.keepdims,
            }
        )
        return config