code: def monkeypatch_KMeans(monkeypatch):
      class mock_kmeans(KMeans):
          def __init__(self, *args, **kwargs):
              pass
  
          def fit(self, *args, **kwargs):
              pass
  
          def predict(self, X):
              return np.ones(X.shape[0])
  
      monkeypatch.setattr("sklearn.cluster.KMeans", mock_kmeans)
  
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 8 for calling a global function with example usage: monkeypatch_KMeans(monkeypatch) and returns: np