code: def test_geocolumn_polygon_accessor():
      s = gpd.GeoSeries(
          [
              Polygon([(0.0, 0.0), (1.0, 1.0), (0.0, 1.0), (0.0, 0.0)]),
              MultiPolygon(
                  [
                      Polygon(
                          [
                              (1.0, 1.0),
                              (2.0, 1.0),
                              (2.0, 2.0),
                              (1.0, 1.0),
                          ]
                      ),
                      Polygon(
                          [
                              (5.0, 5.0),
                              (4.0, 4.0),
                              (4.0, 5.0),
                              (5.0, 5.0),
                          ]
                      ),
                  ]
              ),
              Polygon(
                  [
                      (3.0, 3.0),
                      (2.0, 3.0),
                      (2.0, 2.0),
                      (3.0, 2.0),
                      (3.0, 3.0),
                  ]
              ),
          ]
      )
      gs = cuspatial.from_geopandas(s)
      expected_xy = [
          0.0,
          0.0,
          1.0,
          1.0,
          0.0,
          1.0,
          0.0,
          0.0,
          1.0,
          1.0,
          2.0,
          1.0,
          2.0,
          2.0,
          1.0,
          1.0,
          5.0,
          5.0,
          4.0,
          4.0,
          4.0,
          5.0,
          5.0,
          5.0,
          3.0,
          3.0,
          2.0,
          3.0,
          2.0,
          2.0,
          3.0,
          2.0,
          3.0,
          3.0,
      ]
  
      cp.testing.assert_array_equal(
          gs.polygons.xy, cp.array(expected_xy)
      )
  
      expected_ring_offset = [0, 4, 8, 12, 17]
      cp.testing.assert_array_equal(
          gs.polygons.ring_offset, cp.array(expected_ring_offset)
      )
  
      expected_part_offset = [0, 1, 2, 3, 4]
      cp.testing.assert_array_equal(
          gs.polygons.part_offset, cp.array(expected_part_offset)
      )
  
      expected_geometry_offset = [0, 1, 3, 4]
      cp.testing.assert_array_equal(
          gs.polygons.geometry_offset,
          cp.array(expected_geometry_offset),
      )
  
      expected_point_indices = [
          0,
          0,
          0,
          0,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          2,
          2,
          2,
          2,
          2,
      ]
      cp.testing.assert_array_equal(
          gs.polygons.point_indices(), cp.array(expected_point_indices)
      )
  
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 35 for calling a global function with example usage: test_geocolumn_polygon_accessor() without return types