code: def pairwise(sents):
      _ref, _hypo = [], []
      for s in sents:
          for i in range(len(s)):
              for j in range(len(s)):
                  if i != j:
                      _ref.append(s[i])
                      _hypo.append(s[j])
      return corpus_bleu(_hypo, [_ref])
  
file_path: fairseq/examples/translation_moe/score.py
imports: import argparse
  import random
  import sys
  from itertools import chain
  import numpy
  import sacrebleu
  from sacrebleu import corpus_bleu
label_desc: Use image node_id 8 for calling a global function with example usage: pairwise(sents) and returns: corpus_bleu