code: def generate_data():
      record = {
          "file_name": "test",
          "image_id": 0,
          "height": 100,
          "width": 100,
          "annotations": [
              {
                  "bbox": [10, 10, 10, 10, 5],
                  "bbox_mode": BoxMode.XYWHA_ABS,
                  "category_id": 0,
                  "iscrowd": 0,
              },
              {
                  "bbox": [15, 15, 3, 3],
                  "bbox_mode": BoxMode.XYXY_ABS,
                  "category_id": 0,
                  "iscrowd": 0,
              },
          ],
      }
  
      return [record]
  
file_path: detectron2/tests/data/test_coco.py
imports: import json
  import numpy
  import os
  import tempfile
  import unittest
  import pycocotools.mask
  from detectron2.data import DatasetCatalog, MetadataCatalog
  from detectron2.data.datasets.coco import convert_to_coco_dict, load_coco_json
  from detectron2.structures import BoxMode
label_desc: Use image node_id 1 for calling the TestConvertCOCO obj's underlying member method code with example usage: obj.generate_data() and returns: list