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: If adversarial_label the target label that we are finding.
  The adversarial_example and adversarial_label will be accepted and
  True will be returned.
  
  :return: bool
docstr_tok: ["If","adversarial_label","the","target","label","that","we","are","finding",".","The","adversarial_example","and","adversarial_label","will","be","accepted","and","True","will","be","returned",".",":","return",":","bool"]
code: def try_accept_the_example(
      self, adversarial_example, adversarial_label
  ):
      """
      If adversarial_label the target label that we are finding.
      The adversarial_example and adversarial_label will be accepted and
      True will be returned.
  
      :return: bool
      """
      assert adversarial_example is not None
      assert self.__original.shape == adversarial_example.shape
  
      ok = self._is_successful(adversarial_label)
      if ok:
          self.__adversarial_example = np.copy(adversarial_example)
          self.adversarial_label = adversarial_label
      else:
          self.__bad_adversarial_example = np.copy(adversarial_example)
      return ok
  
file_path: AdvBox/adversarialbox/adversary.py
imports: from builtins import object
  import numpy
  import logging
label_desc: Use image node_id 6 for calling the Adversary obj's underlying member method code with example usage: obj.try_accept_the_example(adversarial_example, adversarial_label) and returns: ok