code: def test_map_euclid(rndstate, complex_valued):
      """Test Euclidean map for generic matrices"""
      n_matrices, n_dim0, n_dim1 = 5, 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)
      X, C = mats[: n_matrices - 1], mats[-1]
      assert exp_map_euclid(log_map_euclid(X, C), C) == approx(X)
  
file_path: pyRiemann/tests/test_utils_tangent_space.py
imports: from conftest import get_metrics
  import numpy
  import pytest
  from pytest import approx
  from pyriemann.utils.distance import distance_riemann
  from pyriemann.utils.tangentspace import exp_map_euclid, exp_map_logeuclid, exp_map_riemann, log_map_euclid, log_map_logeuclid, log_map_riemann, upper, unupper, tangent_space, untangent_space, transport
label_desc: Use image node_id 3 for calling a global function with example usage: test_map_euclid(rndstate, complex_valued) without return types