code: def test_distance_linear():
      test_cases = [
          TestCase(
              "y = 4x + 4", [59, 201], 9.458889376416986
          ),  # https://www.wolframalpha.com/input?i=minimize+sqrt%28%28x+-+59%29%5E2+%2B+%284x+%2B+4+-+201%29%5E2%29
          TestCase("y = x + 3 ", [30, 78], 31.819805153394636),
          TestCase("y = 5x + 4", [-47, 2], 45.69505948719688),
          TestCase("y = 4x + 3", [-65, -255], 0.48507125007266594),
          TestCase("y = 4x + 3", [97, 391], 0.0),
      ]
      check_test_cases(test_cases, distance_linear)
  
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 2 for calling a global function with example usage: test_distance_linear() without return types