code: def validate_contamination(
      contamination: Contamination, schema: Schema
  ):
      """Make sure models and groups in contamination are defined according to `schema`."""
      for point in contamination.points:
          for model in point.models:
              if model not in MODEL_NAME_TO_MODEL:
                  hlog(f"WARNING: model {model} not defined in schema")
          for group in point.groups:
              if group not in schema.name_to_run_group:
                  hlog(f"WARNING: group {group} not defined in schema")
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/presentation/contamination.py
imports: from dataclasses import dataclass
  from typing import List, Optional
  import dacite
  import importlib_resources
  import yaml
  from helm.common.hierarchical_logger import htrack, hlog
  from helm.proxy.models import MODEL_NAME_TO_MODEL
  from helm.benchmark.presentation.schema import Schema
label_desc: Use image node_id 1 for calling a global function with example usage: validate_contamination(contamination, schema) without return types