code: def _get_objective_threshold_from_moo_config(
      optimization_config: MultiObjectiveOptimizationConfig,
      metric_name: str,
  ) -> List[ObjectiveThreshold]:
      """Get the non-relative objective threshold for a given metric."""
      return [
          ot
          for ot in optimization_config.objective_thresholds
          if ot.metric.name == metric_name
      ]
  
imports: import warnings
  from logging import Logger
  from typing import Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  import numpy
  from ax.core.objective import MultiObjective, ScalarizedObjective
  from ax.core.observation import Observation, ObservationData
  from ax.core.optimization_config import MultiObjectiveOptimizationConfig, OptimizationConfig
  from ax.core.outcome_constraint import ComparisonOp, ObjectiveThreshold, OutcomeConstraint, ScalarizedOutcomeConstraint
  from ax.core.search_space import SearchSpace
  from ax.exceptions.core import DataRequiredError, UnsupportedError, UserInputError
  from ax.modelbridge.transforms.base import Transform
  from ax.modelbridge.transforms.utils import derelativize_optimization_config_with_raw_status_quo, get_data
  from ax.models.types import TConfig, WinsorizationConfig
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import checked_cast
label_desc: Use image node_id 5 for calling a global function with example usage: _get_objective_threshold_from_moo_config(optimization_config, metric_name) and returns: unknown