code: def test_linearring_from_generator():
      coords = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0), (0.0, 0.0)]
      gen = (coord for coord in coords)
      ring = LinearRing(gen)
      assert ring.coords[:] == coords
  
imports: import numpy
  import pytest
  from shapely import LinearRing, LineString, Point, Polygon
  from shapely.coords import CoordinateSequence
  from shapely.errors import TopologicalError
  from shapely.wkb import loads
label_desc: Use image node_id 9 for calling a global function with example usage: test_linearring_from_generator() without return types