code: def test_bilinearfilter_log(n_filters, log, get_mats, get_labels):
      n_classes, n_matrices, n_channels = 2, 6, 4
      covmats = get_mats(n_matrices, n_channels, "spd")
      labels = get_labels(n_matrices, n_classes)
      bf = BilinearFilter(np.eye(n_filters, n_channels), log=log)
      Xtr = bf.fit(covmats, labels).transform(covmats)
      if log:
          assert Xtr.shape == (n_matrices, n_filters)
      else:
          assert Xtr.shape == (n_matrices, n_filters, n_filters)
  
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 11 for calling a global function with example usage: test_bilinearfilter_log(n_filters, log, get_mats, get_labels) without return types