code: def test_locally_linear_parameters(
      metric, n_neighbors, reg, get_mats
  ):
      """Test LocallyLinearEmbedding."""
      n_matrices, n_channels, n_comp = 6, 3, 2
      covmats = get_mats(n_matrices, n_channels, "spd")
  
      if n_matrices <= n_neighbors:
          with pytest.raises(AssertionError):
              embd = LocallyLinearEmbedding(
                  metric=metric,
                  n_components=n_comp,
                  n_neighbors=n_neighbors,
              )
              embd.fit(covmats)
      else:
          embd = LocallyLinearEmbedding(
              metric=metric,
              n_components=n_comp,
              n_neighbors=n_neighbors,
          )
          covembd = embd.fit_transform(covmats)
          assert covembd.shape == (n_matrices, n_comp)
  
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 3 for calling a global function with example usage: test_locally_linear_parameters(metric, n_neighbors, reg, get_mats) without return types