code: def _activitynet_evaluation_iou_sweep(gts, preds, config):
      iou_threshs = config.iou_threshs
      id_keys = [
          "eval_id_%s" % str(i).replace(".", "_") for i in iou_threshs
      ]
      iou_key = "eval_iou"
  
      cats, pred_ious = _activitynet_evaluation_setup(
          gts, preds, id_keys, iou_key, config
      )
  
      matches_dict = {
          i: _compute_matches(
              cats,
              pred_ious,
              i,
              eval_key="eval",
              id_key=k,
              iou_key=iou_key,
          )
          for i, k in zip(iou_threshs, id_keys)
      }
  
      return matches_dict
  
imports: import logging
  from collections import defaultdict
  import numpy
  import eta.core.utils
  import fiftyone.core.plots
  import fiftyone.utils.iou
  from .detection import DetectionEvaluation, DetectionEvaluationConfig, DetectionResults
label_desc: Use image node_id 2 for calling a global function with example usage: _activitynet_evaluation_iou_sweep(gts, preds, config) and returns: matches_dict