code: def test_median_shape_with_init(kind, median, get_mats):
      """Test the shape of median with init"""
      n_matrices, n_channels = 5, 3
      mats = get_mats(n_matrices, n_channels, kind)
      C = median(mats, init=mats[0])
      assert C.shape == (n_channels, n_channels)
  
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 2 for calling a global function with example usage: test_median_shape_with_init(kind, median, get_mats) without return types