code: def test_permutation_badmode():
      """Test one way permutation test"""
      with pytest.raises(ValueError):
          PermutationDistance(mode="badmode")
  
file_path: pyRiemann/tests/test_stats.py
imports: from conftest import requires_matplotlib
  import numpy
  from pyriemann.stats import PermutationDistance, PermutationModel
  from pyriemann.spatialfilters import CSP
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_permutation_badmode() without return types