code: def test_label_categorical_color_op(self):
      labels = Labels(
          [(0, 0, "A"), (0, 1, "B"), (0, 2, "A")], vdims="color"
      ).opts(color="color", cmap="tab10")
      plot = mpl_renderer.get_plot(labels)
      artist = plot.handles["artist"]
      self.assertEqual(
          [rgb2hex(a.get_color()) for a in artist],
          ["#1f77b4", "#ff7f0e", "#1f77b4"],
      )
  
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 9 for calling the TestLabelsPlot obj's underlying member method code with example usage: obj.test_label_categorical_color_op() without return types