code: def test_curve_inverted(self):
      curve = Curve([1, 2, 3]).opts(invert_axes=True)
      state = self._get_plot_state(curve)
      self.assertEqual(state["data"][0]["x"], np.array([1, 2, 3]))
      self.assertEqual(state["data"][0]["y"], np.array([0, 1, 2]))
      self.assertEqual(state["data"][0]["mode"], "lines")
      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.element import Curve, Tiles
  from .test_plot import TestPlotlyPlot
label_desc: Use image node_id 2 for calling the TestCurvePlot obj's underlying member method code with example usage: obj.test_curve_inverted() without return types