code: def test_index_coords(self):
      c = [(float(x), float(-x)) for x in range(4)]
      g = LineString(c)
      for i in range(-4, 4):
          assert g.coords[i] == c[i]
      with pytest.raises(IndexError):
          g.coords[4]
      with pytest.raises(IndexError):
          g.coords[-5]
  
file_path: shapely/shapely/tests/geometry/test_coords.py
imports: import numpy
  import pytest
  from shapely import LineString
label_desc: Use image node_id 1 for calling the TestCoordsGetItem obj's underlying member method code with example usage: obj.test_index_coords() without return types