code: def compute_standardization_parameters(
      Ys: DefaultDict[Union[str, Tuple[str, TParamValue]], List[float]]
  ) -> Tuple[
      Dict[Union[str, Tuple[str, str]], float],
      Dict[Union[str, Tuple[str, str]], float],
  ]:
      """Compute mean and std. dev of Ys."""
      Ymean = {k: np.mean(y) for k, y in Ys.items()}
      # We use the Bessel correction term (divide by N-1) here in order to
      # be consistent with the default behavior of torch.std that is used to
      # validate input data standardization in BoTorch.
      Ystd = {
          k: np.std(y, ddof=1) if len(y) > 1 else 0.0
          for k, y in Ys.items()
      }
      for k, s in Ystd.items():
          # Don't standardize if variance is too small.
          if s < 1e-8:
              Ystd[k] = 1.0
              logger.info(f"Outcome {k} is constant, within tolerance.")
      # pyre-fixme[7]: Expected `Tuple[Dict[Union[Tuple[str, str], str], float],
      #  Dict[Union[Tuple[str, str], str], float]]` but got `Tuple[Dict[Union[Tuple[str,
      #  Union[None, bool, float, int, str]], str], typing.Any], Dict[Union[Tuple[str,
      #  Union[None, bool, float, int, str]], str], typing.Any]]`.
      return Ymean, Ystd
  
imports: from logging import Logger
  from typing import DefaultDict, Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  import numpy
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.core.optimization_config import OptimizationConfig
  from ax.core.outcome_constraint import OutcomeConstraint, ScalarizedOutcomeConstraint
  from ax.core.search_space import SearchSpace
  from ax.core.types import TParamValue
  from ax.exceptions.core import DataRequiredError
  from ax.modelbridge.transforms.base import Transform
  from ax.modelbridge.transforms.utils import get_data
  from ax.models.types import TConfig
  from ax.utils.common.logger import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: compute_standardization_parameters(Ys) and returns: Ymean,  Ystd