code: def test_squad_v1():
      predictions = [
          {"prediction_text": "1976", "id": "56e10a3be3433e1400422b22"}
      ]
      references = [
          {
              "answers": {"answer_start": [97], "text": ["1976"]},
              "id": "56e10a3be3433e1400422b22",
          }
      ]
      import evaluate
  
      squad_metric = evaluate.load("squad")
      results = squad_metric.compute(
          predictions=predictions, references=references
      )
      assert results == {"exact_match": 100.0, "f1": 100.0}
  
file_path: h2ogpt/tests/test_metrics.py
imports: from tests.utils import wrap_test_forked
label_desc: Use image node_id 4 for calling a global function with example usage: test_squad_v1() without return types