code: def relativize_data(
      f: List[float],
      sd: List[float],
      rel: bool,
      # pyre-fixme[2]: Parameter annotation cannot contain `Any`.
      arm_data: Dict[Any, Any],
      metric: str,
  ) -> List[List[float]]:
      # if relative, extract status quo & compute ratio
      f_final = [] if rel else f
      sd_final = [] if rel else sd
  
      if rel:
          f_sq = arm_data["in_sample"][arm_data["status_quo_name"]][
              "y"
          ][metric]
          sd_sq = arm_data["in_sample"][arm_data["status_quo_name"]][
              "se"
          ][metric]
  
          for i in range(len(f)):
              res = relativize(f[i], sd[i], f_sq, sd_sq)
              f_final.append(100 * res[0])
              sd_final.append(100 * res[1])
  
      return [f_final, sd_final]
  
imports: import math
  from collections import Counter
  from logging import Logger
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
  import numpy
  from ax.core.generator_run import GeneratorRun
  from ax.core.observation import Observation, ObservationFeatures
  from ax.core.parameter import ChoiceParameter, FixedParameter, Parameter, ParameterType, RangeParameter
  from ax.core.types import TParameterization
  from ax.modelbridge.base import ModelBridge
  from ax.modelbridge.prediction_utils import _compute_scalarized_outcome, predict_at_point
  from ax.modelbridge.transforms.ivw import IVW
  from ax.plot.base import DECIMALS, PlotData, PlotInSampleArm, PlotOutOfSampleArm, Z
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 20 for calling a global function with example usage: relativize_data(f, sd, rel, arm_data, metric) and returns: list