code: def _metric_max_over_ground_truths(
      metric_fn, ground_truths, prediction
  ):
      """Computes the maximum of the metric over all ground truths."""
      return max(
          metric_fn(ground_truth, prediction)
          for ground_truth in ground_truths
      )
  
file_path: text-to-text-transfer-transformer/t5/evaluation/qa_utils.py
imports: import collections
  import re
  import string
  from absl import logging
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _metric_max_over_ground_truths(metric_fn, ground_truths, prediction) and returns: max