code: def to_rgb_color_list(color_str, default):
      color_str = color_str.strip()
      if color_str.startswith("rgb"):
          return [int(v) for v in color_str.strip("rgba()").split(",")]
      elif color_str.startswith("#"):
          return clrs.hex_to_rgb(color_str)
      else:
          return default
  
file_path: catboost/contrib/python/plotly/py3/plotly/figure_factory/_annotated_heatmap.py
imports: import plotly.colors
  from plotly import exceptions, optional_imports
  from plotly.figure_factory import utils
  from plotly.graph_objs import graph_objs
  from plotly.validators.heatmap import ColorscaleValidator
label_desc: Use image node_id 3 for calling a global function with example usage: to_rgb_color_list(color_str, default) and returns: unknown, clrs, default