keras/src/layers/regularization/spatial_dropout.py/BaseSpatialDropout/call
class BaseSpatialDropout:    def call(self, inputs, training=False):
        if training and self.rate > 0:
            return backend.random.dropout(
                inputs,
                self.rate,
                noise_shape=self._get_noise_shape(inputs),
                seed=self.seed_generator,
            )
        return inputs