code: def _check_projs_for_expected_channels(
      projs, n_mags, n_grads, n_eegs
  ):
      assert projs is not None
      for p in projs:
          if "planar" in p["desc"]:
              assert len(p["data"]["col_names"]) == n_grads
          elif "axial" in p["desc"]:
              assert len(p["data"]["col_names"]) == n_mags
          elif "eeg" in p["desc"]:
              assert len(p["data"]["col_names"]) == n_eegs
  
file_path: mne-python/mne/preprocessing/tests/test_ssp.py
imports: from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from mne import pick_types
  from mne._fiff.proj import activate_proj, make_projector
  from mne.datasets import testing
  from mne.io import read_raw_ctf, read_raw_fif
  from mne.preprocessing.ssp import compute_proj_ecg, compute_proj_eog
label_desc: Use image node_id 5 for calling a global function with example usage: _check_projs_for_expected_channels(projs, n_mags, n_grads, n_eegs) without return types