code: def test_kmodes_init_soybean(self):
      init_vals = np.array(
          [
              [
                  0,
                  1,
                  2,
                  1,
                  0,
                  3,
                  1,
                  1,
                  0,
                  2,
                  1,
                  1,
                  0,
                  2,
                  2,
                  0,
                  0,
                  0,
                  1,
                  0,
                  1,
                  2,
                  0,
                  0,
                  0,
                  0,
                  0,
                  3,
                  4,
                  0,
                  0,
                  0,
                  0,
                  0,
                  1,
              ],
              [
                  4,
                  0,
                  0,
                  1,
                  1,
                  1,
                  3,
                  1,
                  1,
                  1,
                  1,
                  1,
                  0,
                  2,
                  2,
                  0,
                  0,
                  0,
                  1,
                  1,
                  0,
                  3,
                  0,
                  0,
                  0,
                  2,
                  1,
                  0,
                  4,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
              ],
              [
                  3,
                  0,
                  2,
                  1,
                  0,
                  2,
                  0,
                  2,
                  1,
                  1,
                  1,
                  1,
                  0,
                  2,
                  2,
                  0,
                  0,
                  0,
                  1,
                  0,
                  3,
                  0,
                  1,
                  1,
                  0,
                  0,
                  0,
                  0,
                  4,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
              ],
              [
                  3,
                  0,
                  2,
                  0,
                  1,
                  3,
                  1,
                  2,
                  0,
                  1,
                  1,
                  0,
                  0,
                  2,
                  2,
                  0,
                  0,
                  0,
                  1,
                  1,
                  1,
                  1,
                  0,
                  1,
                  1,
                  0,
                  0,
                  3,
                  4,
                  0,
                  0,
                  0,
                  0,
                  0,
                  0,
              ],
          ]
      )
      kmodes_init = KModes(n_clusters=4, init=init_vals, verbose=2)
      result = kmodes_init.fit_predict(SOYBEAN)
      expected = np.array(
          [
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              2,
              1,
              1,
              1,
              1,
              1,
              1,
              1,
              1,
              1,
              1,
              3,
              3,
              3,
              3,
              3,
              3,
              3,
              3,
              3,
              3,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
          ]
      )
      assert_cluster_splits_equal(result, expected)
  
      # 5 initial centroids, 4 n_clusters
      init_vals = np.array([[0, 1], [4, 0], [4, 0], [3, 0], [3, 0]])
      kmodes_init = KModes(n_clusters=4, init=init_vals, verbose=2)
      with self.assertRaises(AssertionError):
          kmodes_init.fit(SOYBEAN)
  
      # wrong number of attributes
      init_vals = np.array([0, 1, 2, 3])
      kmodes_init = KModes(n_clusters=4, init=init_vals, verbose=2)
      with self.assertRaises(AssertionError):
          kmodes_init.fit(SOYBEAN)
  
imports: import pickle
  import unittest
  import numpy
  import pandas
  from kmodes.kmodes import KModes
  from kmodes.util.dissim import ng_dissim, jaccard_dissim_binary, jaccard_dissim_label
label_desc: Use image node_id 9 for calling the TestKModes obj's underlying member method code with example usage: obj.test_kmodes_init_soybean() without return types