class_docstr: Adversary contains the original object, the target and the adversarial
  example.
class_docstr_tok: ["Adversary","contains","the","original","object",",","the","target","and","the","adversarial","example","."]
docstr: :param original: The original instance, such as an image.
  :param original_label: The original instance's label.
docstr_tok: [":","param","original",":","The","original","instance",",","such","as","an","image",".",":","param","original_label",":","The","original","instance","'s","label","."]
code: def __init__(self, original, original_label=None):
      """
      :param original: The original instance, such as an image.
      :param original_label: The original instance's label.
      """
      assert original is not None
  
      self.original_label = original_label
      # 定向攻击的目标
      self.target_label = None
      self.adversarial_label = None
      # 保存原始数据 强制拷贝
      self.__original = np.copy(original)
      self.__target = None
      self.__is_targeted_attack = False
      # 保存生成的对抗样本
      self.__adversarial_example = None
      self.__bad_adversarial_example = None
  
file_path: AdvBox/adversarialbox/adversary.py
imports: from builtins import object
  import numpy
  import logging
label_desc: Use image node_id 1 to create a new Adversary object from inherited base classes: object with example: obj = Adversary(original, original_label)