code: def test_bbox_parser(via_dir, via_bbox_class_map):
      parser = parsers.via(
          via_dir / "via_bbox.json", via_dir, via_bbox_class_map
      )
      records = parser.parse(data_splitter=SingleSplitSplitter())[0]
      assert len(records) == 2
  
      record = records[0]
      assert record.record_id == "IMG_4908.jpg"
      assert record.filepath == via_dir / "IMG_4908.jpg"
      assert record.width == 640
      assert record.height == 480
  
      assert record.detection.label_ids == [4, 1, 3, 2]
      # Polygon
      assert record.detection.bboxes[0].xyxy == (104, 120, 155, 176)
      # Rect
      assert record.detection.bboxes[3].xyxy == (263, 55, 308, 103)
  
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_bbox_parser(via_dir, via_bbox_class_map) without return types