def METHOD_NAME(self) -> None:
    if not isinstance(self.backdoor, PoisoningAttackBackdoor):
        raise ValueError("Backdoor must be of type PoisoningAttackBackdoor")
    if not 0 < self.percent_poison <= 1:
        raise ValueError("percent_poison must be between 0 and 1")