code: def test_gpu_execution(setup_gpu, check_ref_counts):
      df_raw = pd.DataFrame(np.random.rand(30, 3), columns=list("abc"))
      df = to_gpu(md.DataFrame(df_raw, chunk_size=6))
  
      r = df.sum()
      res = r.execute().fetch()
      pd.testing.assert_series_equal(res.to_pandas(), df_raw.sum())
  
      r = df.kurt()
      res = r.execute().fetch()
      pd.testing.assert_series_equal(res.to_pandas(), df_raw.kurt())
  
      r = df.agg(["sum", "var"])
      res = r.execute().fetch()
      pd.testing.assert_frame_equal(
          res.to_pandas(), df_raw.agg(["sum", "var"])
      )
  
      s_raw = pd.Series(np.random.rand(30))
      s = to_gpu(md.Series(s_raw, chunk_size=6))
  
      r = s.sum()
      res = r.execute().fetch()
      assert pytest.approx(res) == s_raw.sum()
  
      r = s.kurt()
      res = r.execute().fetch()
      assert pytest.approx(res) == s_raw.kurt()
  
      r = s.agg(["sum", "var"])
      res = r.execute().fetch()
      pd.testing.assert_series_equal(
          res.to_pandas(), s_raw.agg(["sum", "var"])
      )
  
      s_raw = pd.Series(
          np.random.randint(0, 3, size=(30,))
          * np.random.randint(0, 5, size=(30,))
      )
      s = to_gpu(md.Series(s_raw, chunk_size=6))
  
      r = s.unique()
      res = r.execute().fetch()
      np.testing.assert_array_equal(
          cp.asnumpy(res).sort(), s_raw.unique().sort()
      )
  
imports: from typing import NamedTuple
  import numpy
  import pytest
  import pandas
  from ....None import dataframe
  from ....config import option_context
  from ....session import get_default_session
  from ....tests.core import require_cudf, require_cupy
  from ....utils import lazy_import, pd_release_version
  from ...None import CustomReduction, NamedAgg
  from ...base import to_gpu
label_desc: Use image node_id 6 for calling a global function with example usage: test_gpu_execution(setup_gpu, check_ref_counts) without return types