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: Is the adversarial_label is the expected adversarial label.
  
  :param adversarial_label: adversarial label.
  :return: bool
docstr_tok: ["Is","the","adversarial_label","is","the","expected","adversarial","label",".",":","param","adversarial_label",":","adversarial","label",".",":","return",":","bool"]
code: def _is_successful(self, adversarial_label):
      """
      Is the adversarial_label is the expected adversarial label.
  
      :param adversarial_label: adversarial label.
      :return: bool
      """
      if self.target_label is not None:
          return adversarial_label == self.target_label
      else:
          return (adversarial_label is not None) and (
              adversarial_label != self.original_label
          )
  
file_path: AdvBox/adversarialbox/adversary.py
imports: from builtins import object
  import numpy
  import logging
label_desc: Use image node_id 4 for calling the Adversary obj's underlying member method code with example usage: obj._is_successful(adversarial_label) and returns: unknown, unknown