code: def test_reductions_out(axis, redfunc):
      frame = pd.DataFrame(
          {"a": [1, 2, 3], "b": [4, 5, 6]}, index=[0, 1, 3]
      )
      dsk_in = dd.from_pandas(frame, 3)
  
      out = dd.from_pandas(pd.Series([], dtype="float64"), 3)
  
      np_redfunc = getattr(np, redfunc)
      pd_redfunc = getattr(frame.__class__, redfunc)
      dsk_redfunc = getattr(dsk_in.__class__, redfunc)
  
      ctx = pytest.warns(
          FutureWarning, match=r"the 'out' keyword is deprecated"
      )
  
      if redfunc in ["var", "std"]:
          # numpy has default ddof value 0 while
          # dask and pandas have 1, so ddof should be passed
          # explicitly when calling np.var(dask)
          with ctx:
              np_redfunc(dsk_in, axis=axis, ddof=1, out=out)
      elif _numpy_125 and redfunc == "product" and out is None:
          with pytest.warns(
              DeprecationWarning, match="`product` is deprecated"
          ):
              np_redfunc(dsk_in, axis=axis, out=out)
      else:
          with ctx:
              np_redfunc(dsk_in, axis=axis, out=out)
  
      assert_eq(out, pd_redfunc(frame, axis=axis))
  
      with ctx:
          dsk_redfunc(dsk_in, axis=axis, split_every=False, out=out)
      assert_eq(out, pd_redfunc(frame, axis=axis))
  
      with pytest.warns(
          FutureWarning, match="the 'out' keyword is deprecated"
      ):
          dsk_redfunc(dsk_in, axis=axis, split_every=2, out=out)
      assert_eq(out, pd_redfunc(frame, axis=axis))
  
imports: from __future__ import annotations
  import contextlib
  import warnings
  from datetime import datetime
  import numpy
  import pandas
  import pytest
  from pandas.api.types import is_scalar
  import dask.dataframe
  from dask.array.numpy_compat import _numpy_125
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_150, PANDAS_GE_200, PANDAS_VERSION, check_numeric_only_deprecation
  from dask.dataframe.utils import assert_dask_graph, assert_eq, make_meta, pyarrow_strings_enabled
label_desc: Use image node_id 11 for calling a global function with example usage: test_reductions_out(axis, redfunc) without return types