code: def _extract_annotation(ann, image_info):
      """Extracts the bounding box annotation information."""
      return {
          "id": ann["id"],
          "area": ann["area"],
          "bbox": _build_bbox(image_info, *ann["bbox"]),
          "label": ann["category_id"],
      }
  
file_path: datasets/tensorflow_datasets/datasets/ref_coco/ref_coco_dataset_builder.py
imports: from __future__ import annotations
  import collections
  import json
  import operator
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling a global function with example usage: _extract_annotation(ann, image_info) and returns: dict