code: def get_gt_area_group_numbers(cocoEval):
      areaRng = cocoEval.params.areaRng
      areaRngStr = [str(aRng) for aRng in areaRng]
      areaRngLbl = cocoEval.params.areaRngLbl
      areaRngStr2areaRngLbl = dict(zip(areaRngStr, areaRngLbl))
      areaRngLbl2Number = dict.fromkeys(areaRngLbl, 0)
      for evalImg in cocoEval.evalImgs:
          if evalImg:
              for gtIgnore in evalImg["gtIgnore"]:
                  if not gtIgnore:
                      aRngLbl = areaRngStr2areaRngLbl[
                          str(evalImg["aRng"])
                      ]
                      areaRngLbl2Number[aRngLbl] += 1
      return areaRngLbl2Number
  
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 4 for calling a global function with example usage: get_gt_area_group_numbers(cocoEval) and returns: areaRngLbl2Number