code: def _get_winsorization_transform_config(
      winsorization_config: Optional[
          Union[WinsorizationConfig, Dict[str, WinsorizationConfig]]
      ],
      derelativize_with_raw_status_quo: bool,
      no_winsorization: bool,
  ) -> Optional[TConfig]:
      if no_winsorization:
          if winsorization_config is not None:
              warnings.warn(
                  "`no_winsorization = True` but `winsorization_config` has been set. "
                  "Not winsorizing.",
                  stacklevel=2,
              )
          return None
      if winsorization_config:
          return {"winsorization_config": winsorization_config}
      return {
          "derelativize_with_raw_status_quo": derelativize_with_raw_status_quo
      }
  
imports: import logging
  import warnings
  from math import ceil
  from typing import Any, cast, Dict, Optional, Type, Union
  import torch
  from ax.core.experiment import Experiment
  from ax.core.optimization_config import OptimizationConfig
  from ax.core.parameter import ChoiceParameter, ParameterType, RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.modelbridge.generation_strategy import GenerationStep, GenerationStrategy
  from ax.modelbridge.registry import MODEL_KEY_TO_MODEL_SETUP, ModelRegistryBase, Models
  from ax.modelbridge.transforms.base import Transform
  from ax.modelbridge.transforms.winsorize import Winsorize
  from ax.models.torch.botorch_modular.model import BoTorchModel
  from ax.models.types import TConfig
  from ax.models.winsorization_config import WinsorizationConfig
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 6 for calling a global function with example usage: _get_winsorization_transform_config(winsorization_config, derelativize_with_raw_status_quo, no_winsorization) and returns: dict, None, dict