code: def clf_fit_labels_independence(self, clust, covmats, labels):
      clf = clust()
      clf.fit(covmats, labels).transform(covmats)
      # retraining with different size should erase previous fit
      new_covmats = covmats[:, :-1, :-1]
      clf.fit(new_covmats, labels).transform(new_covmats)
  
imports: from conftest import get_metrics
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from pyriemann.clustering import Kmeans, KmeansPerClassTransform, Potato, PotatoField
label_desc: Use image node_id 9 for calling the TestRiemannianClustering obj's underlying member method code with example usage: obj.clf_fit_labels_independence(clust, covmats, labels) without return types