code: def test_from_polygons_xy(polygon_generator):
      hs = gpd.GeoSeries(polygon_generator(10, 10))
      gs = cuspatial.from_geopandas(hs)
  
      gs2 = cuspatial.GeoSeries.from_polygons_xy(
          gs.polygons.xy,
          gs.polygons.ring_offset,
          gs.polygons.part_offset,
          gs.polygons.geometry_offset,
      )
  
      gpd.testing.assert_geoseries_equal(hs, gs2.to_geopandas())
  
imports: from enum import Enum
  from numbers import Integral
  import cupy
  import geopandas
  import numpy
  import pandas
  import pytest
  from geopandas.testing import assert_geoseries_equal
  from shapely.affinity import rotate
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  import cudf
  from cudf.testing import assert_series_equal
  import cuspatial
label_desc: Use image node_id 39 for calling a global function with example usage: test_from_polygons_xy(polygon_generator) without return types