code: def test_TangentSpace_init(
      fit, tsupdate, metric_mean, metric_map, get_mats
  ):
      n_matrices, n_channels = 4, 3
      n_ts = (n_channels * (n_channels + 1)) // 2
      covmats = get_mats(n_matrices, n_channels, "spd")
      ts = TangentSpace(
          metric={"mean": metric_mean, "map": metric_map},
          tsupdate=tsupdate,
      )
      if fit:
          ts.fit(covmats)
      Xtr = ts.transform(covmats)
      assert Xtr.shape == (n_matrices, n_ts)
  
file_path: pyRiemann/tests/test_tangentspace.py
imports: from conftest import get_metrics
  import numpy
  from pyriemann.tangentspace import TangentSpace, FGDA
  import pytest
  from pytest import approx
label_desc: Use image node_id 1 for calling a global function with example usage: test_TangentSpace_init(fit, tsupdate, metric_mean, metric_map, get_mats) without return types