code: def test_labels_color_mapped(self):
      labels = Labels([(0, 1, 0.33333), (1, 0, 0.66666)]).opts(
          color_index=2
      )
      plot = mpl_renderer.get_plot(labels)
      artist = plot.handles["artist"]
      expected = {
          "x": np.array([0, 1]),
          "y": np.array([1, 0]),
          "Label": ["0.33333", "0.66666"],
      }
      colors = [
          (
              0.26666666666666666,
              0.0039215686274509803,
              0.32941176470588235,
              1.0,
          ),
          (
              0.99215686274509807,
              0.90588235294117647,
              0.14117647058823529,
              1.0,
          ),
      ]
      for i, text in enumerate(artist):
          self.assertEqual(text._x, expected["x"][i])
          self.assertEqual(text._y, expected["y"][i])
          self.assertEqual(text.get_text(), expected["Label"][i])
          self.assertEqual(text.get_color(), colors[i])
  
imports: import numpy
  from holoviews.core.dimension import Dimension
  from holoviews.core.options import Cycle
  from holoviews.core.spaces import HoloMap
  from holoviews.element import Labels
  from holoviews.plotting.util import rgb2hex
  from .test_plot import TestMPLPlot, mpl_renderer
label_desc: Use image node_id 5 for calling the TestLabelsPlot obj's underlying member method code with example usage: obj.test_labels_color_mapped() without return types