code: def test_index_coords_misc(self):
      g = LineString()  # empty
      with pytest.raises(IndexError):
          g.coords[0]
      with pytest.raises(TypeError):
          g.coords[0.0]
  
file_path: shapely/shapely/tests/geometry/test_coords.py
imports: import numpy
  import pytest
  from shapely import LineString
label_desc: Use image node_id 3 for calling the TestCoordsGetItem obj's underlying member method code with example usage: obj.test_index_coords_misc() without return types