code: def test_segments_simple(self):
      boxes = Segments([(0, 0, 1, 1), (2, 2, 4, 3)])
      state = self._get_plot_state(boxes)
      shapes = state["layout"]["shapes"]
      self.assertEqual(len(shapes), 2)
      self.assertEqual(
          shapes[0],
          {
              "type": "line",
              "x0": 0,
              "y0": 0,
              "x1": 1,
              "y1": 1,
              "xref": "x",
              "yref": "y",
              "name": "",
              "line": {"color": default_shape_color},
          },
      )
      self.assertEqual(
          shapes[1],
          {
              "type": "line",
              "x0": 2,
              "y0": 2,
              "x1": 4,
              "y1": 3,
              "xref": "x",
              "yref": "y",
              "name": "",
              "line": {"color": default_shape_color},
          },
      )
      self.assertEqual(state["layout"]["xaxis"]["range"], [0, 4])
      self.assertEqual(state["layout"]["yaxis"]["range"], [0, 3])
  
imports: import numpy
  from holoviews.element import Bounds, Box, HLine, Path, Rectangles, Segments, Tiles, VLine
  from .test_plot import TestPlotlyPlot
label_desc: Use image node_id 1 for calling the TestSegments obj's underlying member method code with example usage: obj.test_segments_simple() without return types