code: def test_impute_most_frequent():
      # https://github.com/dask/dask-ml/issues/385
      data = dd.from_pandas(
          pd.DataFrame([1, 1, 1, 1, np.nan, np.nan]), 2
      )
      model = dask_ml.impute.SimpleImputer(strategy="most_frequent")
      result = model.fit_transform(data)
      expected = dd.from_pandas(pd.DataFrame({0: [1.0] * 6}), 2)
      dd.utils.assert_eq(result, expected)
      assert model.statistics_[0] == 1.0
  
file_path: dask-ml/tests/test_impute.py
imports: import dask.array
  import dask.dataframe
  import numpy
  import pandas
  import pandas.testing
  import pytest
  import sklearn.impute
  import dask_ml.datasets
  import dask_ml.impute
  from dask_ml._compat import DASK_2_26_0, PANDAS_1_2_0
  from dask_ml.utils import assert_estimator_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_impute_most_frequent() without return types