code: def test_from_polygons_xy_example():
      polygons_xy = cudf.Series([0.0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 0, 0])
      ring_offset = cudf.Series([0, 6])
      part_offset = cudf.Series([0, 1])
      geometry_offset = cudf.Series([0, 1])
      gpolygon = cuspatial.GeoSeries.from_polygons_xy(
          polygons_xy,
          ring_offset,
          part_offset,
          geometry_offset,
      )
      hpolygon = gpd.GeoSeries(
          [Polygon([(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (0, 0)])]
      )
      gpd.testing.assert_geoseries_equal(
          gpolygon.to_geopandas(), hpolygon
      )
  
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 41 for calling a global function with example usage: test_from_polygons_xy_example() without return types