code: def test_sample_gaussian_spd_error():
      with pytest.raises(ValueError):  # unknown sampling method
          sample_gaussian_spd(
              5, np.eye(2), 1.0, sampling_method="blabla"
          )
      with pytest.raises(
          ValueError
      ):  # dim=3 not yet supported with rejection
          n_dim = 3
          sample_gaussian_spd(
              5, np.eye(n_dim), 1.0, sampling_method="rejection"
          )
  
file_path: pyRiemann/tests/test_sampling.py
imports: import pytest
  import numpy
  from pyriemann.datasets.sampling import sample_gaussian_spd, generate_random_spd_matrix
  from pyriemann.utils.distance import distance_riemann
  from pyriemann.utils.test import is_sym_pos_def
label_desc: Use image node_id 3 for calling a global function with example usage: test_sample_gaussian_spd_error() without return types