code: def test_distance_parabola():
      test_cases = [
          TestCase("y = 2x^2 + x + 1", [159, 50000], 1.137499072212397),
          TestCase(
              "y = 2x^2 + 2x + 4", [130, 28390], 11.364547837422966
          ),
          TestCase("y = 2x^2 + x + 4", [53, 10000], 17.4468675121177),
          TestCase(
              "y = 2x^2 + 2x + 2", [35, 1], 34.36171077312826
          ),  # https://www.wolframalpha.com/input?i=minimize+%28x+-+35%29%5E2+%2B+%282x%5E2+%2B+2x+%2B+2+-+1%29%5E2
          TestCase("y = x^2 + x + 2", [197, 39008], 0.0),
      ]
      check_test_cases(test_cases, distance_parabola)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/metrics/test_numeracy_metrics.py
imports: from dataclasses import dataclass
  from typing import List, Callable
  from helm.benchmark.scenarios.numeracy_scenario import distance_linear, distance_parabola, distance_plane, distance_paraboloid
label_desc: Use image node_id 3 for calling a global function with example usage: test_distance_parabola() without return types