code: def test_from_generator():
      gen = (coord for coord in [(1.0, 2.0), (3.0, 4.0)])
      line = LineString(gen)
      assert line.coords[:] == [(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 8 for calling a global function with example usage: test_from_generator() without return types