docstr: Test whether fit_predict interface works the same as fit and predict.
code: def test_kmodes_fit_predict(self):
      """Test whether fit_predict interface works the same as fit and predict."""
      kmodes = KModes(n_clusters=4, init="Cao", random_state=42)
      sample_weight = [0.5] * TEST_DATA.shape[0]
      data1 = kmodes.fit_predict(TEST_DATA, sample_weight=sample_weight)
      data2 = kmodes.fit(
          TEST_DATA, sample_weight=sample_weight
      ).predict(TEST_DATA)
      assert_cluster_splits_equal(data1, data2)
  
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 29 for calling the TestKModes obj's underlying member method code with example usage: obj.test_kmodes_fit_predict() without return types