code: def test_bars_grouped_inverted(self):
      bars = Bars(
          [("A", 1, 1), ("B", 2, 2), ("C", 2, 3), ("C", 1, 4)],
          kdims=["A", "B"],
      ).opts(invert_axes=True)
      state = self._get_plot_state(bars)
      self.assertEqual(
          state["data"][0]["y"],
          [["A", "B", "C", "C"], ["1", "2", "2", "1"]],
      )
      self.assertEqual(state["data"][0]["x"], np.array([1, 2, 3, 4]))
      self.assertEqual(state["data"][0]["type"], "bar")
      self.assertEqual(state["layout"]["barmode"], "group")
      self.assertEqual(state["layout"]["yaxis"]["range"], [None, None])
      self.assertEqual(
          state["layout"]["yaxis"]["title"]["text"], "A, B"
      )
      self.assertEqual(state["layout"]["xaxis"]["range"], [0, 4.3])
      self.assertEqual(state["layout"]["xaxis"]["title"]["text"], "y")
  
file_path: holoviews/holoviews/tests/plotting/plotly/test_barplot.py
imports: import numpy
  from holoviews.element import Bars
  from .test_plot import TestPlotlyPlot
label_desc: Use image node_id 4 for calling the TestBarsPlot obj's underlying member method code with example usage: obj.test_bars_grouped_inverted() without return types