code: def f1_score(x, y):
      xt = normalize_string(x).split()
      yt = normalize_string(y).split()
      ct = Counter(xt) & Counter(yt)
      if (ns := sum(ct.values())) == 0:
          return 0.0
      p = ns / len(xt)
      r = ns / len(yt)
      return 2 * p * r / (p + r)
  
file_path: tinygrad/examples/mlperf/metrics.py
imports: import re
  import string
  from collections import Counter
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: f1_score(x, y) and returns: unknown, int