code: def test_match_prediction(target, prediction):
      result = match_records(target, prediction, iou_threshold=0.5)
      expected_result = [
          [
              {
                  "target_bbox": BBox.from_xyxy(100, 100, 400, 400),
                  "target_label": "a",
                  "target_label_id": 1,
              },
              [
                  {
                      "predicted_bbox": BBox.from_xyxy(
                          100, 100, 400, 400
                      ),
                      "predicted_label": "a",
                      "predicted_label_id": 1,
                      "score": 0.8,
                      "iou_score": 1.0,
                  },
                  {
                      "predicted_bbox": BBox.from_xyxy(
                          190, 100, 510, 400
                      ),
                      "predicted_label": "b",
                      "predicted_label_id": 2,
                      "score": 0.7,
                      "iou_score": 0.5122,
                  },
              ],
          ],
          [
              {
                  "target_bbox": BBox.from_xyxy(300, 100, 600, 400),
                  "target_label": "b",
                  "target_label_id": 2,
              },
              [
                  {
                      "predicted_bbox": BBox.from_xyxy(
                          190, 100, 510, 400
                      ),
                      "predicted_label": "b",
                      "predicted_label_id": 2,
                      "score": 0.7,
                      "iou_score": 0.5122,
                  },
              ],
          ],
          [
              {
                  "target_bbox": BBox.from_xyxy(700, 200, 900, 500),
                  "target_label": "b",
                  "target_label_id": 2,
              },
              [],
          ],
      ]
      assert result == expected_result
  
file_path: icevision/tests/metrics/test_confusion_matrix.py
imports: import pytest
  from icevision.all import *
  from icevision.metrics.confusion_matrix.confusion_matrix_utils import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_match_prediction(target, prediction) without return types