code: def test_pham_weight_none_equivalent_uniform(get_covmats):
      """Test pham's ajd weights: none is equivalent to uniform values"""
      n_matrices, n_channels, w_val = 5, 3, 2
      covmats = get_covmats(n_matrices, n_channels)
      V, D = ajd_pham(covmats)
      assert V.shape == (n_channels, n_channels)
      assert D.shape == (n_matrices, n_channels, n_channels)
  
      Vw, Dw = ajd_pham(
          covmats, sample_weight=w_val * np.ones(n_matrices)
      )
      assert_array_equal(
          V, Vw
      )  # same result as ajd_pham without weight
      assert_array_equal(D, Dw)
  
file_path: pyRiemann/tests/test_utils_ajd.py
imports: from numpy.testing import assert_array_equal
  import numpy
  import pytest
  from pytest import approx
  from pyriemann.utils.ajd import rjd, ajd_pham, uwedge
label_desc: Use image node_id 3 for calling a global function with example usage: test_pham_weight_none_equivalent_uniform(get_covmats) without return types