def __init__(self, generator: "TensorFlowV2Generator") -> None:
        """
        Initialize a backdoor RED poisoning attack.
        :param generator: the generator to be poisoned
        """
        import tensorflow as tf

        super().__init__(generator=generator)

        self._model_clone = tf.keras.models.clone_model(self.estimator.model)
        self._model_clone.set_weights(self.estimator.model.get_weights())

        Initialize a backdoor RED poisoning attack.
        :param generator: the generator to be poisoned
        
art/attacks/poisoning/backdoor_attack_dgm/backdoor_attack_dgm_red.py