code: def test_groupby_cumulative(aggregation, pdf, series):
      gdf = cudf.DataFrame.from_pandas(pdf)
      ddf = dask_cudf.from_cudf(gdf, npartitions=5)
  
      gdf_grouped = gdf.groupby("xx")
      ddf_grouped = ddf.groupby("xx")
  
      if series:
          gdf_grouped = gdf_grouped.xx
          ddf_grouped = ddf_grouped.xx
  
      a = getattr(gdf_grouped, aggregation)()
      b = getattr(ddf_grouped, aggregation)()
  
      dd.assert_eq(a, b)
  
imports: import numpy
  import pandas
  import pytest
  import dask
  from dask import dataframe
  from dask.utils_test import hlg_layer
  import cudf
  import dask_cudf
  from dask_cudf.groupby import OPTIMIZED_AGGS, _aggs_optimized
label_desc: Use image node_id 4 for calling a global function with example usage: test_groupby_cumulative(aggregation, pdf, series) without return types