code: def test_geodesic_wrapper_random(metric, gfun, get_mats):
      n_matrices, n_channels = 2, 5
      mats = get_mats(n_matrices, n_channels, "spd")
      A, B = mats[0], mats[1]
      if gfun is geodesic_euclid:
          Ctrue = mean_euclid(mats)
      elif gfun is geodesic_logeuclid:
          Ctrue = mean_logeuclid(mats)
      elif gfun is geodesic_riemann:
          Ctrue = mean_riemann(mats)
      assert geodesic(A, B, 0.5, metric=metric) == approx(Ctrue)
  
file_path: pyRiemann/tests/test_utils_geodesic.py
imports: import numpy
  import pytest
  from pytest import approx
  from pyriemann.utils.geodesic import geodesic, geodesic_euclid, geodesic_logeuclid, geodesic_riemann
  from pyriemann.utils.mean import mean_euclid, mean_logeuclid, mean_riemann
label_desc: Use image node_id 11 for calling a global function with example usage: test_geodesic_wrapper_random(metric, gfun, get_mats) without return types