code: def cook_refs(refs, n=4):
      """Takes a list of reference sentences for a single segment
      and returns an object that encapsulates everything that BLEU
      needs to know about them."""
  
      refs = [normalize(ref) for ref in refs]
      maxcounts = {}
      for ref in refs:
          counts = count_ngrams(ref, n)
          for ngram, count in counts.items():
              maxcounts[ngram] = max(maxcounts.get(ngram, 0), count)
      return ([len(ref) for ref in refs], maxcounts)
  
file_path: codet5/CodeT5/evaluator/smooth_bleu.py
imports: import sys, math, re, xml.sax.saxutils
  import subprocess
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: cook_refs(refs, n) and returns: unknown,  maxcounts