code: def test_funm_all(kind, funm, get_mats):
      n_matrices, n_dim = 10, 3
      C = get_mats(n_matrices, n_dim, kind)
      if funm is powm:
          D = funm(C, 0.42)
      else:
          D = funm(C)
      assert D.shape == (n_matrices, n_dim, n_dim)
  
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 6 for calling a global function with example usage: test_funm_all(kind, funm, get_mats) without return types