code: def embd_metric_error(self, embedding, covmats, n_components):
      with pytest.raises(ValueError):
          embd = embedding(n_components=n_components, metric="foooo")
          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 6 for calling the TestEmbedding obj's underlying member method code with example usage: obj.embd_metric_error(embedding, covmats, n_components) without return types