code: def _create_dummy_coco_json(dummy_json_path):
      dummy_json = {
          "images": [
              {
                  "id": 0,
                  "width": 1920,
                  "height": 1080,
                  "file_name": "sample_one.png",
              },
              {
                  "id": 1,
                  "width": 1920,
                  "height": 1080,
                  "file_name": "sample_two.png",
              },
          ],
          "annotations": [
              {
                  "id": 1,
                  "image_id": 0,
                  "category_id": 0,
                  "area": 150,
                  "bbox": [30, 40, 20, 20],
                  "iscrowd": 0,
              },
              {
                  "id": 2,
                  "image_id": 1,
                  "category_id": 0,
                  "area": 240,
                  "bbox": [50, 100, 280, 15],
                  "iscrowd": 0,
              },
              {
                  "id": 3,
                  "image_id": 1,
                  "category_id": 0,
                  "area": 170,
                  "bbox": [230, 130, 90, 180],
                  "iscrowd": 0,
              },
          ],
          "categories": [
              {
                  "id": 0,
                  "name": "person",
                  "supercategory": "person",
              }
          ],
      }
  
      with open(dummy_json_path, "w") as fp:
          json.dump(dummy_json, fp)
  
file_path: lightning-flash/tests/image/detection/test_data.py
imports: import json
  import os
  from pathlib import Path
  import pytest
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _FIFTYONE_AVAILABLE, _ICEVISION_AVAILABLE, _PIL_AVAILABLE
  from flash.image.detection.data import ObjectDetectionData
label_desc: Use image node_id 1 for calling a global function with example usage: _create_dummy_coco_json(dummy_json_path) without return types