code: def test_kmeans_cluster_widget():
      cl = ClusterWidget(method="kmeans")
      assert isinstance(
          cl, ClusterWidget
      ), "Cluster Widget not a subclass of Cluster Widget"
      assert hasattr(
          cl, "method"
      ), "Cluster Widget missing `method` attribute"
      assert (
          cl.method == "kmeans"
      ), "Cluster Widget has the wrong cluster method attribute"
      assert hasattr(
          cl, "estimator"
      ), "Cluster Widget missing estimator attribute"
      assert hasattr(
          cl, "n_clusters"
      ), "Cluster Widget missing `n_clusters` attribute"
      assert hasattr(
          cl, "search"
      ), "Cluster Widget missing `search` attribute"
      assert hasattr(
          cl, "cluster_range"
      ), "Cluster Widget `cluster_range` attribute"
      assert hasattr(
          cl, "metric"
      ), "Cluster Widget missing `metric` attribute"
      assert hasattr(
          cl, "estimator"
      ), "Cluster Widget missing `estimator` attribute"
      assert hasattr(
          cl, "scores"
      ), "Cluster Widget missing `scores` attribute"
  
imports: import numpy
  import pytest
  import matplotlib
  from matplotlib.axes import Axes
  from sklearn.cluster import KMeans
  from sklearn.preprocessing import StandardScaler
  import plotly
  import data_describe
  from data_describe.compat import _is_dataframe
  from data_describe.core.clustering import ClusterWidget, _pandas_compute_cluster, _run_kmeans, _find_clusters, _fit_kmeans, _run_hdbscan
label_desc: Use image node_id 3 for calling a global function with example usage: test_kmeans_cluster_widget() without return types