code: def test_empty_df_reductions(func):
      pdf = pd.DataFrame()
      ddf = dd.from_pandas(pdf, npartitions=1)
  
      dsk_func = getattr(ddf.__class__, func)
      pd_func = getattr(pdf.__class__, func)
  
      assert_eq(dsk_func(ddf), pd_func(pdf))
  
      idx = pd.date_range("2000", periods=4)
      pdf = pd.DataFrame(index=idx)
      ddf = dd.from_pandas(pdf, npartitions=1)
  
      assert_eq(dsk_func(ddf), pd_func(pdf))
  
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 28 for calling a global function with example usage: test_empty_df_reductions(func) without return types