code: def test_linestring(self):
      # From coordinate tuples
      line = LineString([(1.0, 2.0), (3.0, 4.0)])
      assert len(line.coords) == 2
      assert line.coords[:] == [(1.0, 2.0), (3.0, 4.0)]
  
      # Bounds
      assert line.bounds == (1.0, 2.0, 3.0, 4.0)
  
      # Coordinate access
      assert tuple(line.coords) == ((1.0, 2.0), (3.0, 4.0))
      assert line.coords[0] == (1.0, 2.0)
      assert line.coords[1] == (3.0, 4.0)
      with pytest.raises(IndexError):
          line.coords[2]  # index out of range
  
      # Geo interface
      assert line.__geo_interface__ == {
          "type": "LineString",
          "coordinates": ((1.0, 2.0), (3.0, 4.0)),
      }
  
imports: import numpy
  import pytest
  import shapely
  from shapely import LinearRing, LineString, Point
  from shapely.coords import CoordinateSequence
label_desc: Use image node_id 1 for calling the TestLineString obj's underlying member method code with example usage: obj.test_linestring() without return types