code: def test_make_matrices(rndstate, kind):
      """Test function for make matrices."""
      n_matrices, n_dim = 5, 4
      X = make_matrices(
          n_matrices=n_matrices,
          n_dim=n_dim,
          kind=kind,
          return_params=False,
          eigvecs_same=False,
          rs=rndstate,
      )
      assert X.shape == (n_matrices, n_dim, n_dim)
  
      if kind == "real":
          assert is_real(X)
      elif kind == "comp":
          assert not is_real(X)
      elif kind == "spd":
          assert is_spd(X)
          assert is_spsd(X)
          assert_array_almost_equal(X, np.swapaxes(X, -2, -1))
      elif kind == "spsd":
          assert is_spsd(X)
          assert not is_spd(X, tol=1e-9)
      elif kind == "hpd":
          assert is_hpd(X)
          assert is_hpsd(X)
          assert_array_almost_equal(X, np.swapaxes(X.conj(), -2, -1))
      else:  # hpsd
          assert is_hpsd(X)
          assert not is_hpd(X, tol=1e-9)
  
file_path: pyRiemann/tests/test_simulated.py
imports: import pytest
  import numpy
  from numpy.testing import assert_array_almost_equal
  from pyriemann.datasets.sampling import generate_random_spd_matrix
  from pyriemann.datasets.simulated import make_covariances, make_matrices, make_masks, make_gaussian_blobs, make_outliers
  from pyriemann.utils.test import is_real, is_sym_pos_def, is_sym_pos_semi_def, is_herm_pos_def, is_herm_pos_semi_def
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_matrices(rndstate, kind) without return types