code: def test_median_euclid(rndstate, complex_valued):
      """Test the Euclidean median for generic matrices"""
      n_matrices, n_dim0, n_dim1 = 10, 3, 4
      mats = rndstate.randn(n_matrices, n_dim0, n_dim1)
      if complex_valued:
          mats = mats + 1j * rndstate.randn(n_matrices, n_dim0, n_dim1)
      assert median_euclid(mats).shape == (n_dim0, n_dim1)
  
file_path: pyRiemann/tests/test_utils_median.py
imports: import numpy
  import pytest
  from pytest import approx
  from pyriemann.utils.median import median_euclid, median_riemann
label_desc: Use image node_id 6 for calling a global function with example usage: test_median_euclid(rndstate, complex_valued) without return types