docstr: Test whether fit_predict interface works the same as fit and predict.
code: def test_kmodes_fit_predict_equality(self):
      """Test whether fit_predict interface works the same as fit and predict."""
      kproto = kprototypes.KPrototypes(
          n_clusters=3, init="Cao", random_state=42
      )
      sample_weight = [0.5] * STOCKS.shape[0]
      model1 = kproto.fit(
          STOCKS, categorical=[1, 2], sample_weight=sample_weight
      )
      data1 = model1.predict(STOCKS, categorical=[1, 2])
      data2 = kproto.fit_predict(
          STOCKS, categorical=[1, 2], sample_weight=sample_weight
      )
      assert_cluster_splits_equal(data1, data2)
  
imports: import pickle
  import unittest
  import numpy
  import pandas
  from kmodes import kprototypes
  from kmodes.tests.test_kmodes import assert_cluster_splits_equal
  from kmodes.util.dissim import ng_dissim
label_desc: Use image node_id 28 for calling the TestKProtoTypes obj's underlying member method code with example usage: obj.test_kmodes_fit_predict_equality() without return types