code: def test_kmeans2_simple(self):
      np.random.seed(12345678)
      initc = np.concatenate(([[X[0]], [X[1]], [X[2]]]))
      for tp in np.array, matrix:
          code1 = kmeans2(tp(X), tp(initc), iter=1)[0]
          code2 = kmeans2(tp(X), tp(initc), iter=2)[0]
  
          assert_array_almost_equal(code1, CODET1)
          assert_array_almost_equal(code2, CODET2)
  
imports: import warnings
  import sys
  import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal, assert_allclose, assert_equal, assert_, suppress_warnings
  import pytest
  from pytest import raises
  from scipy.cluster.vq import kmeans, kmeans2, py_vq, vq, whiten, ClusterError, _krandinit
  from scipy.cluster import _vq
  from scipy.sparse.sputils import matrix
label_desc: Use image node_id 4 for calling the TestKMean obj's underlying member method code with example usage: obj.test_kmeans2_simple() without return types