code: def _check_cython_group_transform_cumulative(pd_op, np_op, dtype):
      """
      Check a group transform that executes a cumulative function.
  
      Parameters
      ----------
      pd_op : callable
          The pandas cumulative function.
      np_op : callable
          The analogous one in NumPy.
      dtype : type
          The specified dtype of the data.
      """
      is_datetimelike = False
  
      data = np.array([[1], [2], [3], [4]], dtype=dtype)
      answer = np.zeros_like(data)
  
      labels = np.array([0, 0, 0, 0], dtype=np.intp)
      ngroups = 1
      pd_op(answer, data, labels, ngroups, is_datetimelike)
  
      tm.assert_numpy_array_equal(
          np_op(data), answer[:, 0], check_dtype=False
      )
  
imports: import numpy
  import pytest
  from pandas._libs import groupby
  from pandas._libs.groupby import group_cumprod, group_cumsum, group_mean, group_sum, group_var
  from pandas.core.dtypes.common import ensure_platform_int
  from pandas import isna
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: _check_cython_group_transform_cumulative(pd_op, np_op, dtype) without return types