code: def test_labels_inverted(self):
      labels = Labels([(0, 3, 0), (1, 2, 1), (2, 1, 1)]).opts(
          invert_axes=True
      )
      state = self._get_plot_state(labels)
      self.assertEqual(state["data"][0]["x"], np.array([3, 2, 1]))
      self.assertEqual(state["data"][0]["y"], np.array([0, 1, 2]))
      self.assertEqual(state["data"][0]["text"], ["0", "1", "1"])
      self.assertEqual(state["data"][0]["mode"], "text")
      self.assertEqual(state["layout"]["xaxis"]["range"], [1, 3])
      self.assertEqual(state["layout"]["yaxis"]["range"], [0, 2])
      self.assertEqual(state["layout"]["xaxis"]["title"]["text"], "y")
      self.assertEqual(state["layout"]["yaxis"]["title"]["text"], "x")
  
imports: import numpy
  from holoviews.core.options import Cycle
  from holoviews.core.spaces import HoloMap
  from holoviews.element import Labels, Tiles
  from .test_plot import TestPlotlyPlot
label_desc: Use image node_id 2 for calling the TestLabelsPlot obj's underlying member method code with example usage: obj.test_labels_inverted() without return types