code: def _activitynet_evaluation_single_iou(gts, preds, eval_key, config):
      iou_thresh = min(config.iou, 1 - 1e-10)
      id_key = "%s_id" % eval_key
      iou_key = "%s_iou" % eval_key
  
      cats, pred_ious = _activitynet_evaluation_setup(
          gts, preds, [id_key], iou_key, config
      )
  
      matches = _compute_matches(
          cats,
          pred_ious,
          iou_thresh,
          eval_key=eval_key,
          id_key=id_key,
          iou_key=iou_key,
      )
  
      return matches
  
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 1 for calling a global function with example usage: _activitynet_evaluation_single_iou(gts, preds, eval_key, config) and returns: matches