code: def test_from_dict_slices(gpdf, dict_slice):
      sliced = gpdf[dict_slice]
      sliced_dict = {
          char: sliced[col]
          for char, col in zip(
              np.array([*"abcdef"])[np.random.randint(0, 5, 5)],
              sliced.columns,
          )
      }
      gpdf = gpd.GeoDataFrame(sliced_dict)
      cugpdf = cuspatial.GeoDataFrame(sliced_dict)
      assert_eq_geo_df(gpdf, cugpdf.to_geopandas())
  
imports: import geopandas
  import numpy
  import pandas
  import pytest
  from geopandas.testing import assert_geodataframe_equal
  from shapely.affinity import rotate
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  import cudf
  import cuspatial
label_desc: Use image node_id 26 for calling a global function with example usage: test_from_dict_slices(gpdf, dict_slice) without return types