code: def to_rgb_color_list(color_str, default):
      if "rgb" in color_str:
          return [int(v) for v in color_str.strip("rgb()").split(",")]
      elif "#" in color_str:
          return clrs.hex_to_rgb(color_str)
      else:
          return default
  
file_path: catboost/contrib/python/plotly/py2/plotly/figure_factory/_annotated_heatmap.py
imports: from __future__ import absolute_import, division
  from plotly import exceptions, optional_imports
  import plotly.colors
  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