code: def _get_corpus_statistics(
      hypothesis: List[str], references: List[List[str]]
  ):
      scorer = CHRF(get_default_args())
      corpus_statistics = [0] * (scorer.order * 3)
      data = [hypothesis] + references
      for h, *r in zip(*data):
          statistics = scorer.get_sentence_statistics(h, r)
          for i in range(len(statistics)):
              corpus_statistics[i] += statistics[i]
      return corpus_statistics
  
file_path: vizseq/vizseq/scorers/chrf.py
imports: from concurrent.futures import ProcessPoolExecutor, as_completed
  from typing import List, Optional, Dict
  import argparse
  from sacrebleu.metrics import CHRF
  from tqdm import tqdm
  from vizseq.scorers import register_scorer, VizSeqScorer, VizSeqScore
label_desc: Use image node_id 3 for calling a global function with example usage: _get_corpus_statistics(hypothesis, references) and returns: corpus_statistics