code: def test_cython_group_sum_Inf_at_begining_and_end(values, out):
      # GH #53606
      actual = np.array([[np.nan], [np.nan]], dtype="float64")
      counts = np.array([0, 0], dtype="int64")
      data = np.array(values, dtype="float64")
      labels = np.array([0, 1, 1], dtype=np.intp)
  
      group_sum(
          actual, counts, data, labels, None, is_datetimelike=False
      )
  
      expected = np.array(out, dtype="float64")
  
      tm.assert_numpy_array_equal(
          actual,
          expected,
      )
  
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 10 for calling a global function with example usage: test_cython_group_sum_Inf_at_begining_and_end(values, out) without return types