class_docstr: Base global pooling layer.
code: def __init__(
      self, pool_dimensions, data_format=None, keepdims=False, **kwargs
  ):
      super().__init__(**kwargs)
  
      self.data_format = (
          image_data_format() if data_format is None else data_format
      )
      self.keepdims = keepdims
      self.input_spec = InputSpec(ndim=pool_dimensions + 2)
  
file_path: keras/keras/layers/pooling/base_global_pooling.py
imports: from keras.backend import image_data_format
  from keras.layers.input_spec import InputSpec
  from keras.layers.layer import Layer
label_desc: Use image node_id 1 to create a new BaseGlobalPooling object from inherited base classes: Layer with example: obj = BaseGlobalPooling(pool_dimensions, data_format, keepdims)