code: def validate_evaluation_outcome(outcome: TEvaluationOutcome) -> None:
      """Runtime validate that the supplied outcome has correct structure."""
  
      if isinstance(outcome, dict):
          # Check if outcome is TTrialEvaluation
          validate_trial_evaluation(evaluation=outcome)
  
      elif isinstance(outcome, list):
          # Check if outcome is TFidelityTrialEvaluation or TMapTrialEvaluation
          try:
              validate_fidelity_trial_evaluation(
                  evaluation=outcome
              )  # pyre-ignore[6]
          except Exception:
              try:
                  validate_map_trial_evaluation(
                      evaluation=outcome
                  )  # pyre-ignore[6]
              except Exception:
                  raise TypeError(
                      "Expected either TFidelityTrialEvaluation or TMapTrialEvaluation, "
                      f"found {outcome}"
                  )
  
      else:
          # Check if outcome is SingleMetricData
          validate_single_metric_data(data=outcome)
  
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 10 for calling a global function with example usage: validate_evaluation_outcome(outcome) without return types