code: def test_check_raise():
      """Test check SPD matrices"""
      C = 2 * np.ones((10, n_channels, n_channels))
      # This is an indirect check, the riemannian mean must crash when the
      # matrices are not SPD.
      with pytest.warns(RuntimeWarning):
          with pytest.raises(ValueError):
              mean_riemann(C)
  
file_path: pyRiemann/tests/test_utils_base.py
imports: import pytest
  import numpy
  from numpy.testing import assert_array_almost_equal
  from pyriemann.utils.base import expm, invsqrtm, logm, powm, sqrtm, nearest_sym_pos_def
  from pyriemann.utils.mean import mean_riemann
  from pyriemann.utils.test import is_pos_def, is_sym_pos_def
label_desc: Use image node_id 10 for calling a global function with example usage: test_check_raise() without return types