code: def test_intercept_builtin_sum():
      s = Series([1.0, 2.0, np.nan, 3.0])
      grouped = s.groupby([0, 1, 2, 2])
  
      msg = "using SeriesGroupBy.sum"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          # GH#53425
          result = grouped.agg(builtins.sum)
      msg = "using np.sum"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          # GH#53425
          result2 = grouped.apply(builtins.sum)
      expected = grouped.sum()
      tm.assert_series_equal(result, expected)
      tm.assert_series_equal(result2, expected)
  
imports: import builtins
  import datetime
  from string import ascii_lowercase
  import numpy
  import pytest
  from pandas._libs.tslibs import iNaT
  import pandas
  from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range, isna
  import pandas._testing
  from pandas.util import _test_decorators
label_desc: Use image node_id 41 for calling a global function with example usage: test_intercept_builtin_sum() without return types