code: def simple_polygon_generator():
      """Generator for polygons with no interior ring.
      Usage: polygon_generator(n, distance_from_origin, radius)
      """
      rstate = np.random.RandomState(0)
  
      def generator(n, distance_from_origin, radius=1.0):
          for _ in range(n):
              outer = Point(distance_from_origin * 2, 0).buffer(radius)
              circle = Polygon(outer)
              yield rotate(
                  circle, rstate.random() * 2 * np.pi, use_radians=True
              )
  
      return generator
  
imports: import geopandas
  import numpy
  import pandas
  import pytest
  from shapely.affinity import rotate
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
label_desc: Use image node_id 9 for calling a global function with example usage: simple_polygon_generator() and returns: generator