code: def test_coco_api_from_records(coco_mask_records):
      coco_api = coco_api_from_records(coco_mask_records)
      image_info = coco_api.loadImgs([343934])
      expected = [
          {
              "id": 343934,
              "file_name": "000000343934.jpg",
              "width": 640,
              "height": 480,
          }
      ]
      assert image_info == expected
  
file_path: icevision/tests/data/test_convert_records_to_coco_style.py
imports: import pytest
  import icevision
  from icevision.all import *
label_desc: Use image node_id 5 for calling a global function with example usage: test_coco_api_from_records(coco_mask_records) without return types