code: def test_bertscore():
      predictions = ["hello there", "general kenobi"]
      references = ["hello there", "general kenobi"]
      import evaluate
  
      bertscore = evaluate.load("bertscore")
      results = bertscore.compute(
          predictions=predictions, references=references, lang="en"
      )
      assert [round(v, 2) for v in results["f1"]] == [1.0, 1.0]
  
file_path: h2ogpt/tests/test_metrics.py
imports: from tests.utils import wrap_test_forked
label_desc: Use image node_id 7 for calling a global function with example usage: test_bertscore() without return types