code: def embd_n_comp(n_components, embd, get_mats):
      n_matrices, n_channels = 8, 3
      covmats = get_mats(n_matrices, n_channels, "spd")
      embd = embd(n_components=n_components)
      if n_matrices <= n_components:
          with pytest.raises(AssertionError):
              embd.fit(covmats)
      else:
          embd.fit(covmats)
  
imports: from conftest import get_metrics
  import numpy
  from sklearn.neighbors import NearestCentroid
  from pyriemann.datasets import make_gaussian_blobs
  from pyriemann.embedding import SpectralEmbedding, LocallyLinearEmbedding, barycenter_weights, locally_linear_embedding
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: embd_n_comp(n_components, embd, get_mats) without return types