class_docstr: Implementation of backdoor attacks introduced in Gu et al., 2017.
  
  Applies a number of backdoor perturbation functions and switches label to target label
  
  | Paper link: https://arxiv.org/abs/1708.06733
docstr: Initialize a backdoor poisoning attack.
  
  :param perturbation: A single perturbation function or list of perturbation functions that modify input.
code: def __init__(
      self, perturbation: Union[Callable, List[Callable]]
  ) -> None:
      """
      Initialize a backdoor poisoning attack.
  
      :param perturbation: A single perturbation function or list of perturbation functions that modify input.
      """
      super().__init__()
      self.perturbation = perturbation
      self._check_params()
  
file_path: adversarial-robustness-toolbox/art/attacks/poisoning/backdoor_attack.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from typing import Callable, List, Optional, Tuple, Union
  import numpy
  from art.attacks.attack import PoisoningAttackBlackBox
label_desc: Use image node_id 1 to create a new PoisoningAttackBackdoor object from inherited base classes: PoisoningAttackBlackBox with example: obj = PoisoningAttackBackdoor(perturbation)