code: def test_pairwise_iou_matching(target, prediction):
      result = pairwise_iou_record_record(
          target=target, prediction=prediction
      )
      expected_result = torch.tensor(
          [
              [1.0000, 0.2000, 0.0000],
              [0.5122, 0.5122, 0.0000],
              [0.0000, 0.3636, 0.0000],
              [0.1026, 0.0000, 0.0000],
              [0.1246, 0.0000, 0.0000],
              [0.1026, 0.0000, 0.0000],
          ]
      )
      assert torch.allclose(result, expected_result, atol=1e-4)
  
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 9 for calling a global function with example usage: test_pairwise_iou_matching(target, prediction) without return types