code: def validate_trial_evaluation(evaluation: TTrialEvaluation) -> None:
      for key, value in evaluation.items():
          if not isinstance(key, str):
              raise TypeError(
                  f"Keys must be strings in TTrialEvaluation, found {key}."
              )
  
          validate_single_metric_data(data=value)
  
file_path: Ax/ax/core/types.py
imports: import enum
  from typing import Any, Callable, DefaultDict, Dict, Hashable, List, Optional, Tuple, Union
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: validate_trial_evaluation(evaluation) without return types