code: def test_labels_inverted(self):
      labels = Labels([(0, 1, "A"), (1, 0, "B")]).opts(invert_axes=True)
      plot = bokeh_renderer.get_plot(labels)
      source = plot.handles["source"]
      glyph = plot.handles["glyph"]
      expected = {
          "x": np.array([0, 1]),
          "y": np.array([1, 0]),
          "Label": ["A", "B"],
      }
      for k, vals in expected.items():
          self.assertEqual(source.data[k], vals)
      self.assertEqual(glyph.x, "y")
      self.assertEqual(glyph.y, "x")
      self.assertEqual(glyph.text, "Label")
  
imports: import numpy
  from bokeh.models import CategoricalColorMapper, LinearColorMapper
  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.bokeh.util import property_to_dict
  from ..utils import ParamLogStream
  from .test_plot import TestBokehPlot, bokeh_renderer
label_desc: Use image node_id 4 for calling the TestLabelsPlot obj's underlying member method code with example usage: obj.test_labels_inverted() without return types