code: def test_bbox_parser(coco_dir, coco_bbox_parser):
      records = coco_bbox_parser.parse(
          data_splitter=SingleSplitSplitter()
      )[0]
      assert len(records) == 5
  
      record = records[0]
      assert record.record_id == 343934
      assert record.filepath == coco_dir / "images/000000343934.jpg"
      assert record.width == 640
      assert record.height == 480
  
      assert len(record.detection.class_map) == 91
      assert record.detection.class_map.get_by_id(90) == "toothbrush"
      assert record.detection.label_ids == [4]
      assert pytest.approx(record.detection.bboxes[0].xyxy) == (
          175.14,
          175.68,
          496.2199,
          415.68,
      )
      assert record.detection.iscrowds == [0]
      assert pytest.approx(record.detection.areas) == [43522.805]
  
file_path: icevision/tests/parsers/test_coco_parser.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 4 for calling a global function with example usage: test_bbox_parser(coco_dir, coco_bbox_parser) without return types