code: def test_chrfpp():
      prediction = [
          "The relationship between cats and dogs is not exactly friendly.",
          "a good bookshop is just a genteel black hole that knows how to read.",
      ]
      reference = [
          [
              "The relationship between dogs and cats is not exactly friendly.",
          ],
          [
              "A good bookshop is just a genteel Black Hole that knows how to read."
          ],
      ]
      import evaluate
  
      chrf = evaluate.load("chrf")
      results = chrf.compute(
          predictions=prediction, references=reference, word_order=2
      )
      assert results == {
          "beta": 2,
          "char_order": 6,
          "score": 82.87263732906315,
          "word_order": 2,
      }
  
file_path: h2ogpt/tests/test_metrics.py
imports: from tests.utils import wrap_test_forked
label_desc: Use image node_id 9 for calling a global function with example usage: test_chrfpp() without return types