code: def metric_max_over_ground_truths(
      metric_fn, prediction, ground_truths
  ):
      """
      Metric max over the ground truths.
      """
      scores_for_ground_truths = []
      for ground_truth in ground_truths:
          score = metric_fn(prediction, ground_truth)
          scores_for_ground_truths.append(score)
      return max(scores_for_ground_truths)
  
file_path: nni/examples/trials/ga_squad/evaluate.py
imports: from __future__ import print_function
  from collections import Counter
  import string
  import re
  import argparse
  import json
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: metric_max_over_ground_truths(metric_fn, prediction, ground_truths) and returns: max