code: def test_generate_random_spd_matrix():
      """Test generating random SPD matrix"""
      n_dim = 4
      X = generate_random_spd_matrix(n_dim, random_state=None)
      assert X.shape == (n_dim, n_dim)  # X shape mismatch
      assert is_spd(X)
  
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 4 for calling a global function with example usage: test_generate_random_spd_matrix() without return types