code: def testkmeans2(self):
      X = nr.randn(10000, 2)
      A = np.concatenate([np.ones((7000, 2)), np.zeros((3000, 2))])
      X = X + 3 * A
      L = np.concatenate([np.ones(5000), np.zeros(5000)]).astype(
          np.int_
      )
      C, L, J = kmeans(X, 2, L)
      l = L[:7000].astype(np.float64)
      self.assertGreater(np.mean(l), 0.9)
  
file_path: nipy/nipy/algorithms/clustering/tests/test_clustering.py
imports: from unittest import TestCase
  import numpy
  import numpy.random
  from ..utils import kmeans
label_desc: Use image node_id 2 for calling the TestClustering obj's underlying member method code with example usage: obj.testkmeans2() without return types