code: def test_groupby(gpdf):
      cugpdf = cuspatial.from_geopandas(gpdf)
      expected = (
          gpdf.groupby("key")[["integer", "random"]].min().sort_index()
      )
      got = (
          cugpdf.groupby("key")[["integer", "random"]]
          .min()
          .sort_index()
          .to_pandas()
      )
      pd.testing.assert_frame_equal(got, expected)
  
imports: import geopandas
  import numpy
  import pandas
  import cuspatial
label_desc: Use image node_id 4 for calling a global function with example usage: test_groupby(gpdf) without return types