code: def fit_predict(self, X, y=None, **kwargs):
          
          return self.fit(X, **kwargs).predict(X, **kwargs)
docs: Compute cluster centroids and predict cluster index for each sample.
  
          Convenience method; equivalent to calling fit(X) followed by
          predict(X).