code: def test_parser_parse_fields(dummy_parser_all_components):
      parser = dummy_parser_all_components()
  
      record = parser.create_record()
      parser.parse_fields(None, record, is_new=True)
  
      assert record.filepath == Path(__file__)
      assert record.height == 420
      assert record.width == 480
  
      assert record.detection.label_ids == [1]
      assert record.detection.bboxes == [BBox.from_xyxy(1, 2, 3, 4)]
      assert np.array_equal(
          record.detection.masks[0].data, np.zeros((1, 420, 480))
      )
      assert record.detection.areas == [4.2]
      assert record.detection.iscrowds == [False]
      assert record.detection.keypoints == [KeyPoints((1, 1, 1), None)]
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_parser_parse_fields(dummy_parser_all_components) without return types