code: def test_csp_pipeline():
      """Test if CSP works in a pipeline."""
      pytest.importorskip("sklearn")
      from sklearn.pipeline import Pipeline
      from sklearn.svm import SVC
  
      csp = CSP(reg=1, norm_trace=False)
      svc = SVC()
      pipe = Pipeline([("CSP", csp), ("SVC", svc)])
      pipe.set_params(CSP__reg=0.2)
      assert pipe.get_params()["CSP__reg"] == 0.2
  
file_path: mne-python/mne/decoding/tests/test_csp.py
imports: from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_equal
  from mne import Epochs, io, pick_types, read_events
  from mne.decoding.csp import CSP, SPoC, _ajd_pham
label_desc: Use image node_id 5 for calling a global function with example usage: test_csp_pipeline() without return types