code: def test_permutation_pairwise_unique(get_mats, get_labels):
      """Test one way permutation with estimator"""
      n_matrices, n_channels, n_classes = 6, 3, 2
      covmats = get_mats(n_matrices, n_channels, "spd")
      labels = get_labels(n_matrices, n_classes)
      # unique perms
      p = PermutationDistance(1000)
      p.test(covmats, labels)
  
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 5 for calling a global function with example usage: test_permutation_pairwise_unique(get_mats, get_labels) without return types