class_docstr: Refer to TraceFactory.create_table() for docstring
docstr: Generate annotations to fill in table text
  
  :rtype (list) annotations: list of annotations for each cell of the
      table.
code: def make_table_annotations(self):
      """
      Generate annotations to fill in table text
  
      :rtype (list) annotations: list of annotations for each cell of the
          table.
      """
      table_matrix = _Table.get_table_matrix(self)
      all_font_colors = _Table.get_table_font_color(self)
      annotations = []
      for n, row in enumerate(self.table_text):
          for m, val in enumerate(row):
              # Bold text in header and index
              format_text = (
                  "<b>" + str(val) + "</b>"
                  if n == 0 or self.index and m < 1
                  else str(val)
              )
              # Match font color of index to font color of header
              font_color = (
                  self.font_colors[0]
                  if self.index and m == 0
                  else all_font_colors[n]
              )
              annotations.append(
                  graph_objs.layout.Annotation(
                      text=format_text,
                      x=self.x[m] - self.annotation_offset,
                      y=self.y[n],
                      xref="x1",
                      yref="y1",
                      align="left",
                      xanchor="left",
                      font=dict(color=font_color),
                      showarrow=False,
                  )
              )
      return annotations
  
file_path: catboost/contrib/python/plotly/py3/plotly/figure_factory/_table.py
imports: from plotly import exceptions, optional_imports
  from plotly.graph_objs import graph_objs
label_desc: Use image node_id 4 for calling the _Table obj's underlying member method code with example usage: obj.make_table_annotations() and returns: annotations