code: def test_pick_forward_seeg_ecog():
      """Test picking forward with SEEG and ECoG."""
      fwd = read_forward_solution(fname_meeg)
      counts = channel_indices_by_type(fwd["info"])
      for key in counts.keys():
          counts[key] = len(counts[key])
      counts["meg"] = counts["mag"] + counts["grad"]
      fwd_ = pick_types_forward(fwd, meg=True)
      _check_fwd_n_chan_consistent(fwd_, counts["meg"])
      fwd_ = pick_types_forward(fwd, meg=False, eeg=True)
      _check_fwd_n_chan_consistent(fwd_, counts["eeg"])
      # should raise exception related to emptiness
      pytest.raises(
          ValueError, pick_types_forward, fwd, meg=False, seeg=True
      )
      pytest.raises(
          ValueError, pick_types_forward, fwd, meg=False, ecog=True
      )
      # change last chan from EEG to sEEG, second-to-last to ECoG
      ecog_name = "E1"
      seeg_name = "OTp1"
      rename_channels(fwd["info"], {"EEG 059": ecog_name})
      rename_channels(fwd["info"], {"EEG 060": seeg_name})
      for ch in fwd["info"]["chs"]:
          if ch["ch_name"] == seeg_name:
              ch["kind"] = FIFF.FIFFV_SEEG_CH
              ch["coil_type"] = FIFF.FIFFV_COIL_EEG
          elif ch["ch_name"] == ecog_name:
              ch["kind"] = FIFF.FIFFV_ECOG_CH
              ch["coil_type"] = FIFF.FIFFV_COIL_EEG
      fwd["sol"]["row_names"][-1] = fwd["info"]["chs"][-1]["ch_name"]
      fwd["sol"]["row_names"][-2] = fwd["info"]["chs"][-2]["ch_name"]
      counts["eeg"] -= 2
      counts["seeg"] += 1
      counts["ecog"] += 1
      # repick & check
      fwd_seeg = pick_types_forward(fwd, meg=False, seeg=True)
      assert fwd_seeg["sol"]["row_names"] == [seeg_name]
      assert fwd_seeg["info"]["ch_names"] == [seeg_name]
      # should work fine
      fwd_ = pick_types_forward(fwd, meg=True)
      _check_fwd_n_chan_consistent(fwd_, counts["meg"])
      fwd_ = pick_types_forward(fwd, meg=False, eeg=True)
      _check_fwd_n_chan_consistent(fwd_, counts["eeg"])
      fwd_ = pick_types_forward(fwd, meg=False, seeg=True)
      _check_fwd_n_chan_consistent(fwd_, counts["seeg"])
      fwd_ = pick_types_forward(fwd, meg=False, ecog=True)
      _check_fwd_n_chan_consistent(fwd_, counts["ecog"])
  
imports: from copy import deepcopy
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from mne import Epochs, channel_indices_by_type, channel_type, create_info, make_ad_hoc_cov, pick_channels, pick_channels_cov, pick_channels_regexp, pick_info, pick_types, pick_types_forward, read_forward_solution, rename_channels
  from mne._fiff.constants import FIFF
  from mne._fiff.pick import _DATA_CH_TYPES_SPLIT, _contains_ch_type, _picks_by_type, _picks_to_idx, get_channel_type_constants
  from mne.channels import make_standard_montage
  from mne.datasets import testing
  from mne.io import RawArray, read_info, read_raw_bti, read_raw_fif, read_raw_kit
  from mne.preprocessing import compute_current_source_density
  from mne.utils import assert_object_equal, catch_logging
label_desc: Use image node_id 15 for calling a global function with example usage: test_pick_forward_seeg_ecog() without return types