code: def compute_eval_metric(gt, predictions):
      thresholds = [
          0.5,
          0.55,
          0.6,
          0.65,
          0.7,
          0.75,
          0.8,
          0.85,
          0.9,
          0.95,
      ]
      ious = compute_ious(gt, predictions)
      precisions = [compute_precision_at(ious, th) for th in thresholds]
      return np.mean(precisions)
  
file_path: nni/examples/trials/kaggle-tgs-salt/metrics.py
imports: import numpy
  from pycocotools import mask
  from utils import get_segmentations
label_desc: Use image node_id 4 for calling a global function with example usage: compute_eval_metric(gt, predictions) and returns: np