code: def test_erp_covariances_svd_error(rndstate, get_labels):
      """assert raise svd"""
      n_classes, n_matrices, n_channels, n_times = 2, 4, 3, 10
      x = rndstate.randn(n_matrices, n_channels, n_times)
      labels = get_labels(n_matrices, n_classes)
      with pytest.raises(TypeError):
          ERPCovariances(svd="42").fit(x, labels)
  
imports: import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_raises
  import pytest
  from pyriemann.estimation import Covariances, ERPCovariances, XdawnCovariances, CospCovariances, HankelCovariances, Coherences, Shrinkage, BlockCovariances, Kernels
  from pyriemann.utils.test import is_sym_pos_def, is_sym_pos_semi_def
label_desc: Use image node_id 6 for calling a global function with example usage: test_erp_covariances_svd_error(rndstate, get_labels) without return types