code: def test_bilinearfilter_log_error(get_mats, get_labels):
      n_classes, n_matrices, n_channels = 2, 6, 3
      covmats = get_mats(n_matrices, n_channels, "spd")
      labels = get_labels(n_matrices, n_classes)
      with pytest.raises(TypeError):
          BilinearFilter(np.eye(3), log="foo").fit(covmats, labels)
  
imports: from conftest import get_metrics
  import pytest
  import numpy
  from numpy.testing import assert_array_equal
  from pyriemann.spatialfilters import Xdawn, CSP, SPoC, BilinearFilter, AJDC
label_desc: Use image node_id 10 for calling a global function with example usage: test_bilinearfilter_log_error(get_mats, get_labels) without return types