code: def test_TS_vecdim_error():
      n_matrices, n_ts = 4, 6
      ts = TangentSpace()
      with pytest.raises(ValueError):
          tsvectors_wrong = np.empty((n_matrices, n_ts + 1))
          ts.transform(tsvectors_wrong)
  
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 4 for calling a global function with example usage: test_TS_vecdim_error() without return types