code: def metric_max_over_ground_truths(
      metric_fn, prediction, ground_truths, lang
  ):
      scores_for_ground_truths = []
      for ground_truth in ground_truths:
          score = metric_fn(prediction, ground_truth, lang)
          scores_for_ground_truths.append(score)
      return max(scores_for_ground_truths)
  
imports: import string
  import re
  import sys
  import unicodedata
  from collections import Counter
  from dataclasses import dataclass
  from jiant.tasks.lib.templates.squad_style import core
label_desc: Use image node_id 6 for calling a global function with example usage: metric_max_over_ground_truths(metric_fn, prediction, ground_truths, lang) and returns: max