def METHOD_NAME(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