code: def test_sklearn_compliance():
      """Test LinearModel compliance with sklearn."""
      pytest.importorskip("sklearn")
      from sklearn.linear_model import LogisticRegression
      from sklearn.utils.estimator_checks import check_estimator
  
      lm = LinearModel(LogisticRegression())
      ignores = (
          "check_estimator_sparse_data",  # we densify
          "check_estimators_overwrite_params",  # self.model changes!
          "check_parameters_default_constructible",
      )
      for est, check in check_estimator(lm, generate_only=True):
          if any(ignore in str(check) for ignore in ignores):
              continue
          check(est)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_array_less, assert_equal
  from mne import EpochsArray, create_info
  from mne.decoding import GeneralizingEstimator, Scaler, TransformerMixin, Vectorizer
  from mne.decoding.base import BaseEstimator, LinearModel, _get_inverse_funcs, cross_val_multiscore, get_coef
  from mne.decoding.search_light import SlidingEstimator
label_desc: Use image node_id 8 for calling a global function with example usage: test_sklearn_compliance() without return types