class_docstr: A data structure reporting how much confidence a model assigned to its
  predictions on each example and whether those predictions were correct.
  
  :param correctness: ndarray, one bool per example indicating whether it was
    correct
  :param confidence: ndarray, one floating point value per example reporting
    the probability assigned to the prediction for that example
class_docstr_tok: ["A","data","structure","reporting","how","much","confidence","a","model","assigned","to","its","predictions","on","each","example","and","whether","those","predictions","were","correct",".",":","param","correctness",":","ndarray",",","one","bool","per","example","indicating","whether","it","was","correct",":","param","confidence",":","ndarray",",","one","floating","point","value","per","example","reporting","the","probability","assigned","to","the","prediction","for","that","example"]
code: def __getitem__(self, key):
      warnings.warn(
          "Dictionary confidence report entries are deprecated. "
          "Switch to accessing the appropriate field of "
          "ConfidenceReportEntry. "
          "Dictionary-style access will be removed on or after "
          "2019-04-24."
      )
      assert key in ["correctness", "confidence"]
      return self.__dict__[key]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import OrderedDict
  import logging
  import time
  import warnings
  import numpy
  import six
  import tensorflow
  from cleverhans.attacks import MaxConfidence
  from cleverhans.attacks import Semantic
  from cleverhans.evaluation import correctness_and_confidence
  from cleverhans.evaluation import run_attack
  from cleverhans.utils import set_log_level
  from cleverhans.serial import load, save
  from cleverhans.utils_tf import infer_devices
label_desc: Use image node_id 2 for calling the ConfidenceReportEntry obj's underlying member method code with example usage: obj.__getitem__(key) and returns: self