code: def test_stat_non_defaults_args(self, frame_or_series):
      obj = construct(frame_or_series, 5)
      out = np.array([0])
      errmsg = "the 'out' parameter is not supported"
  
      with pytest.raises(ValueError, match=errmsg):
          obj.max(out=out)  # stat_function
      with pytest.raises(ValueError, match=errmsg):
          obj.var(out=out)  # stat_function_ddof
      with pytest.raises(ValueError, match=errmsg):
          obj.sum(out=out)  # cum_function
      with pytest.raises(ValueError, match=errmsg):
          obj.any(out=out)
  
imports: from copy import copy, deepcopy
  import numpy
  import pytest
  from pandas.core.dtypes.common import is_scalar
  from pandas import DataFrame, Index, Series, date_range
  import pandas._testing
label_desc: Use image node_id 10 for calling the TestGeneric obj's underlying member method code with example usage: obj.test_stat_non_defaults_args(frame_or_series) without return types