code: def clf_fit_transform_independence(self, tspace, covmats, labels):
      n_matrices, n_channels, n_channels = covmats.shape
      ts = tspace()
      ts.fit(covmats, labels)
      # retraining with different size should erase previous fit
      new_covmats = covmats[:, :-1, :-1]
      ts.fit(new_covmats, labels)
      # fit_transform should work as well
      ts.fit_transform(covmats, labels)
  
file_path: pyRiemann/tests/test_tangentspace.py
imports: from conftest import get_metrics
  import numpy
  from pyriemann.tangentspace import TangentSpace, FGDA
  import pytest
  from pytest import approx
label_desc: Use image node_id 3 for calling the TestTangentSpace obj's underlying member method code with example usage: obj.clf_fit_transform_independence(tspace, covmats, labels) without return types