code: def test_tangent_space_riemann_properties(kind, get_mats):
      n_matrices, n_channels = 2, 3
      mats = get_mats(n_matrices, n_channels, kind)
      A, B = mats[0], mats[1]
  
      # equivalent definitions of Riemannian distance, Eq(7) in [Barachant2012]
      dist = distance_riemann(A, B)
      s = tangent_space(A, B, metric="riemann")
      assert dist == approx(np.linalg.norm(s))
  
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 6 for calling a global function with example usage: test_tangent_space_riemann_properties(kind, get_mats) without return types