code: def __getstate__(self):
      internal_model = self._get_internal_model().result()
      state = {
          "verbose": self.verbose,
          "kwargs": self.kwargs,
          "datatype": getattr(self, "datatype", None),
          "internal_model": internal_model,
      }
      return state
  
imports: from distributed.client import Future
  from functools import wraps
  from dask_cudf.core import Series
  from cuml.internals.safe_imports import gpu_only_import_from
  from cuml.internals.base import Base
  from cuml.internals import BaseMetaClass
  from cuml.dask.common import parts_to_ranks
  from cuml.dask.common.input_utils import DistributedDataHandler
  from raft_dask.common.comms import Comms
  from cuml.dask.common.utils import wait_and_raise_from_futures
  from cuml.internals.array import CumlArray
  from cuml.dask.common.utils import get_client
  from collections.abc import Iterable
  from toolz import first
  from cuml.internals.safe_imports import cpu_only_import
  import dask
  import cudf.comm.serialize
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 2 for calling the BaseEstimator obj's underlying member method code with example usage: obj.__getstate__() and returns: state