code: def _get_and_validate_use_raw_sq(config: TConfig) -> bool:
      use_raw_sq = config.get("derelativize_with_raw_status_quo", False)
      if isinstance(use_raw_sq, bool):
          return use_raw_sq
      raise UserInputError(
          f"`derelativize_with_raw_status_quo` must be a boolean. Got {use_raw_sq}."
      )
  
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 11 for calling a global function with example usage: _get_and_validate_use_raw_sq(config) and returns: use_raw_sq