code: def assert_stats_equal(
      actual_stats: List[Stat], expected_values: Dict[str, float]
  ):
      actual_values = {
          stat.name.name: stat.mean for stat in actual_stats
      }
      assert actual_values == approx(expected_values)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/metrics/test_classification_metrics.py
imports: from collections import defaultdict
  from typing import Dict, List, NamedTuple
  from pytest import approx
  from helm.benchmark.adaptation.request_state import RequestState
  from helm.benchmark.metrics.classification_metrics import ClassificationMetric
  from helm.benchmark.metrics.statistic import Stat
  from helm.benchmark.scenarios.scenario import Input, Instance, Output, Reference, CORRECT_TAG
  from helm.common.request import Request, RequestResult, Sequence
label_desc: Use image node_id 2 for calling a global function with example usage: assert_stats_equal(actual_stats, expected_values) without return types