code: def test_median_weight_zero(kind, median, get_mats):
      """Setting one weight to almost 0 it's almost like not passing the mat"""
      n_matrices, n_channels, w_val = 5, 3, 2
      mats = get_mats(n_matrices, n_channels, kind)
      w = w_val * np.ones(n_matrices)
      C = median(mats[1:], weights=w[1:])
      w[0] = 1e-12
      Cw = median(mats, weights=w)
      assert C == approx(Cw, rel=1e-6, abs=1e-8)
  
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 3 for calling a global function with example usage: test_median_weight_zero(kind, median, get_mats) without return types