class_docstr: Base pooling layer.
class_docstr_tok: ["Base","pooling","layer","."]
code: def __init__(
      self,
      pool_size,
      strides,
      pool_dimensions,
      pool_mode="max",
      padding="valid",
      data_format=None,
      name=None,
      **kwargs,
  ):
      super().__init__(name=name, **kwargs)
  
      self.pool_size = argument_validation.standardize_tuple(
          pool_size, pool_dimensions, "pool_size"
      )
      strides = pool_size if strides is None else strides
      self.strides = argument_validation.standardize_tuple(
          strides, pool_dimensions, "strides", allow_zero=True
      )
      self.pool_mode = pool_mode
      self.padding = padding
      self.data_format = backend.standardize_data_format(data_format)
  
      self.input_spec = InputSpec(ndim=pool_dimensions + 2)
  
file_path: keras/keras/layers/pooling/base_pooling.py
imports: from keras import backend
  from keras import ops
  from keras.layers.input_spec import InputSpec
  from keras.layers.layer import Layer
  from keras.ops.operation_utils import compute_pooling_output_shape
  from keras.utils import argument_validation
label_desc: Use image node_id 1 to create a new BasePooling object from inherited base classes: Layer with example: obj = BasePooling(pool_size, strides, pool_dimensions, pool_mode, padding, data_format, name)