code: def deprecated(report):
      """
      The deprecated implementation of report printing.
      :param report: dict
      """
      warnings.warn(
          "Printing dict-based reports is deprecated. This function "
          "is included only to support a private development branch "
          "and may be removed without warning."
      )
  
      for key in report:
          confidence_name = "confidence"
          correctness_name = "correctness"
          if confidence_name not in report[key]:
              confidence_name = "all_probs"
              correctness_name = "correctness_mask"
              warnings.warn(
                  "'all_probs' is used only to temporarily support "
                  "the private development branch. This name can be "
                  "removed at any time without warning."
              )
          covered = report[key][confidence_name] > 0.5
          wrong = 1.0 - report[key][correctness_name]
          failure_rate = (covered * wrong).mean()
          print(key, "failure rate at t=.5", failure_rate)
          print(
              key,
              "accuracy at t=0",
              report[key][correctness_name].mean(),
          )
  
imports: import sys
  import warnings
  from cleverhans.confidence_report import ConfidenceReport
  from cleverhans.serial import load
label_desc: Use image node_id 2 for calling a global function with example usage: deprecated(report) without return types