code: def _fit_array(self, X):
      if self.strategy not in {"mean", "constant"}:
          msg = "Can only use strategy='mean' or 'constant' with Dask Array."
          raise ValueError(msg)
  
      if self.strategy == "mean":
          statistics = da.nanmean(X, axis=0).compute()
      else:
          statistics = np.full(
              X.shape[1], self.fill_value, dtype=X.dtype
          )
  
      (self.statistics_,) = da.compute(statistics)
  
file_path: dask-ml/dask_ml/impute.py
imports: import dask
  import dask.array
  import dask.dataframe
  import numpy
  import pandas
  import sklearn.impute
  from .utils import check_array
label_desc: Use image node_id 3 for calling the SimpleImputer obj's underlying member method code with example usage: obj._fit_array(X) without return types