code: def get_color(x: float, ci: float, rel: bool, reverse: bool) -> str:
      """Determine the color of the table cell."""
      if not rel:
          # Color coding is meant to be relative to the status quo,
          # and thus doesn't make sense if rel = False
          return "#ffffff"
  
      r = min(math.floor(abs(x) / ci), 2) if ci > 0 else 2
      index = int(2 + r * math.copysign(1, x))
      color_scale = list(COLOR_SCALE)
      if reverse:
          color_scale = list(reversed(color_scale))
      return color_scale[index]
  
file_path: Ax/ax/plot/table_view.py
imports: import math
  from typing import Tuple
  import pandas
  import plotly.graph_objs
  from ax.core.data import Data
  from ax.core.experiment import Experiment
  from ax.modelbridge.factory import get_empirical_bayes_thompson, get_thompson
  from ax.plot.base import AxPlotConfig, AxPlotTypes, PlotMetric, Z
  from ax.plot.helper import get_plot_data
  from ax.plot.scatter import _error_scatter_data
  from pandas.core.frame import DataFrame
label_desc: Use image node_id 1 for calling a global function with example usage: get_color(x, ci, rel, reverse) and returns: color_scale, str