code: def test_moment():
      from dask.array import stats
      from dask.array.utils import assert_eq
  
      df = pd.Series(list(range(10)))
      ddf = dd.from_pandas(df, npartitions=2)
  
      assert_eq(stats.moment(ddf, 2, 0), scipy.stats.moment(df, 2, 0))
  
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 27 for calling a global function with example usage: test_moment() without return types