code: def test_FGDA_init(
      tsupdate, metric_mean, metric_map, get_mats, get_labels
  ):
      n_classes, n_matrices, n_channels = 2, 6, 3
      labels = get_labels(n_matrices, n_classes)
      covmats = get_mats(n_matrices, n_channels, "spd")
      ts = FGDA(
          metric={"mean": metric_mean, "map": metric_map},
          tsupdate=tsupdate,
      )
      ts.fit(covmats, labels)
      Xtr = ts.transform(covmats)
      assert Xtr.shape == (n_matrices, n_channels, n_channels)
  
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 2 for calling a global function with example usage: test_FGDA_init(tsupdate, metric_mean, metric_map, get_mats, get_labels) without return types