code: def test_non_callable_aggregates(how, kwds):
      # test agg using non-callable series attributes
      # GH 39116 - expand to apply
      s = Series([1, 2, None])
  
      # Calling agg w/ just a string arg same as calling s.arg
      result = getattr(s, how)("size", **kwds)
      expected = s.size
      assert result == expected
  
      # test when mixed w/ callable reducers
      result = getattr(s, how)(["size", "count", "mean"], **kwds)
      expected = Series({"size": 3.0, "count": 2.0, "mean": 1.5})
      tm.assert_series_equal(result, expected)
  
      result = getattr(s, how)(
          {"size": "size", "count": "count", "mean": "mean"}, **kwds
      )
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, concat, date_range, timedelta_range
  import pandas._testing
  from pandas.tests.apply.common import series_transform_kernels
label_desc: Use image node_id 28 for calling a global function with example usage: test_non_callable_aggregates(how, kwds) without return types