code: def clf_jobs(self, clust, covmats, n_clusters, labels=None):
      n_matrices = covmats.shape[0]
      clf = clust(n_clusters=n_clusters, n_jobs=2)
      if labels is None:
          clf.fit(covmats)
      else:
          clf.fit(covmats, labels)
      transformed = clf.transform(covmats)
      assert len(transformed) == (n_matrices)
  
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 2 for calling the TestRiemannianClustering obj's underlying member method code with example usage: obj.clf_jobs(clust, covmats, n_clusters, labels) without return types