code: def computeROUGE(greedy, answer):
      rouges = compute_rouge_scores(greedy, answer)
      if len(rouges) > 0:
          avg_rouges = {}
          for key in rouges[0].keys():
              avg_rouges[key] = (
                  sum([r.get(key, 0.0) for r in rouges])
                  / len(rouges)
                  * 100
              )
      else:
          avg_rouges = None
      return avg_rouges
  
imports: from subprocess import Popen, PIPE, CalledProcessError
  import json
  from text.torchtext.datasets.generic import Query
  import logging
  import os
  import re
  import string
  import numpy
  import collections
  from multiprocessing import Pool, cpu_count
  from contextlib import closing
  from pyrouge import Rouge155
  from sacrebleu import corpus_bleu
label_desc: Use image node_id 13 for calling a global function with example usage: computeROUGE(greedy, answer) and returns: avg_rouges