code: def create_plot():
      fig, ax = plt.subplots()
      colors = plt.rcParams["axes.prop_cycle"].by_key()["color"]
      points = []
  
      for i, color in enumerate(colors):
          points = ax.plot(i, 0, "o", c=color, ms=20)
          plugins.connect(
              fig, plugins.PointLabelTooltip(points[0], [color])
          )
      ax.set_xlim(-1, len(colors) + 1)
      return fig
  
imports: import matplotlib.pyplot
  import numpy
  import mpld3
  from mpld3 import plugins
label_desc: Use image node_id 1 for calling a global function with example usage: create_plot() and returns: fig