code: def autolabel(ax, rects):
      """Attach a text label above each bar in *rects*, displaying its height."""
      for rect in rects:
          height = rect.get_height()
          if height > 0 and height <= 1:  # for percent values
              text_label = "{:2.0f}".format(height * 100)
          else:
              text_label = "{:2.0f}".format(height)
          ax.annotate(
              text_label,
              xy=(rect.get_x() + rect.get_width() / 2, height),
              xytext=(0, 3),  # 3 points vertical offset
              textcoords="offset points",
              ha="center",
              va="bottom",
              fontsize="x-small",
          )
  
file_path: mmdetection/tools/analysis_tools/coco_error_analysis.py
imports: import copy
  import os
  from argparse import ArgumentParser
  from multiprocessing import Pool
  import matplotlib.pyplot
  import numpy
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
label_desc: Use image node_id 2 for calling a global function with example usage: autolabel(ax, rects) without return types