code: def test_squad_v2():
      predictions = [
          {
              "prediction_text": "1976",
              "id": "56e10a3be3433e1400422b22",
              "no_answer_probability": 0.0,
          }
      ]
      references = [
          {
              "answers": {"answer_start": [97], "text": ["1976"]},
              "id": "56e10a3be3433e1400422b22",
          }
      ]
      import evaluate
  
      squad_v2_metric = evaluate.load("squad_v2")
      results = squad_v2_metric.compute(
          predictions=predictions, references=references
      )
      assert results == {
          "exact": 100.0,
          "f1": 100.0,
          "total": 1,
          "HasAns_exact": 100.0,
          "HasAns_f1": 100.0,
          "HasAns_total": 1,
          "best_exact": 100.0,
          "best_exact_thresh": 0.0,
          "best_f1": 100.0,
          "best_f1_thresh": 0.0,
      }
  
file_path: h2ogpt/tests/test_metrics.py
imports: from tests.utils import wrap_test_forked
label_desc: Use image node_id 5 for calling a global function with example usage: test_squad_v2() without return types