code: def test_nonfitted():
      km = Kmeans(k=3, max_iter=50, random_seed=1, print_progress=0)
  
      km._is_fitted = False
      assert_raises(
          AttributeError, "Model is not fitted, yet.", km.predict, X
      )
  
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 1 for calling a global function with example usage: test_nonfitted() without return types