code: def compute_pairwise_ious(detected, ground_truth, iou_func):
      """Compute pairwise ious between detections and ground truth."""
      ious = np.zeros((len(detected), len(ground_truth)))
      for g_idx, g in enumerate(ground_truth):
          for d_idx, d in enumerate(detected):
              ious[d_idx, g_idx] = iou_func(d, g)
      return ious
  
file_path: deepchecks/deepchecks/vision/metrics_utils/iou_utils.py
imports: from collections import defaultdict
  from typing import List
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: compute_pairwise_ious(detected, ground_truth, iou_func) and returns: ious