code: def print_coco_results(results):
      def _print(result, ap=1, iouThr=None, areaRng="all", maxDets=100):
          titleStr = (
              "Average Precision" if ap == 1 else "Average Recall"
          )
          typeStr = "(AP)" if ap == 1 else "(AR)"
          iouStr = "0.50:0.95" if iouThr is None else f"{iouThr:0.2f}"
          iStr = f" {titleStr:<18} {typeStr} @[ IoU={iouStr:<9} | "
          iStr += f"area={areaRng:>6s} | maxDets={maxDets:>3d} ] = {result:0.3f}"
          print(iStr)
  
      stats = np.zeros((12,))
      stats[0] = _print(results[0], 1)
      stats[1] = _print(results[1], 1, iouThr=0.5)
      stats[2] = _print(results[2], 1, iouThr=0.75)
      stats[3] = _print(results[3], 1, areaRng="small")
      stats[4] = _print(results[4], 1, areaRng="medium")
      stats[5] = _print(results[5], 1, areaRng="large")
      # TODO support recall metric
      """
      stats[6] = _print(results[6], 0, maxDets=1)
      stats[7] = _print(results[7], 0, maxDets=10)
      stats[8] = _print(results[8], 0)
      stats[9] = _print(results[9], 0, areaRng='small')
      stats[10] = _print(results[10], 0, areaRng='medium')
      stats[11] = _print(results[11], 0, areaRng='large')
      """
  
file_path: mmdetection/tools/analysis_tools/robustness_eval.py
imports: import os.path
  from argparse import ArgumentParser
  import numpy
  from mmengine.fileio import load
label_desc: Use image node_id 1 for calling a global function with example usage: print_coco_results(results) without return types