code: def test_metric_wrong_keys(tspace, metric, get_mats, get_labels):
      with pytest.raises((TypeError, KeyError, ValueError)):
          n_classes, n_matrices, n_channels = 2, 6, 3
          labels = get_labels(n_matrices, n_classes)
          covmats = get_mats(n_matrices, n_channels, "spd")
          clf = tspace(metric=metric)
          clf.fit(covmats, labels).transform(covmats)
  
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 3 for calling a global function with example usage: test_metric_wrong_keys(tspace, metric, get_mats, get_labels) without return types