code: def test_three_blobs_centroids():
      km = Kmeans(k=3, max_iter=50, random_seed=1, print_progress=0)
  
      centroids = np.array(
          [
              [-1.5947298, 2.92236966],
              [2.06521743, 0.96137409],
              [0.9329651, 4.35420713],
          ]
      )
  
      km.fit(X)
      assert km.iterations_ == 2
      np.testing.assert_almost_equal(
          centroids, km.centroids_, decimal=2
      )
  
file_path: mlxtend/mlxtend/cluster/tests/test_kmeans.py
imports: import numpy
  from sklearn.base import clone
  from mlxtend.cluster import Kmeans
  from mlxtend.data import three_blobs_data
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 7 for calling a global function with example usage: test_three_blobs_centroids() without return types