code: def test_gdf_exclude_channels():
      """Test reading GDF data with excluded channels."""
      raw = read_raw_gdf(
          gdf1_path.with_name(gdf1_path.name + ".gdf"),
          exclude=("FP1", "O1"),
      )
      assert "FP1" not in raw.ch_names
      assert "O1" not in raw.ch_names
      raw = read_raw_gdf(
          gdf2_path.with_name(gdf2_path.name + ".gdf"),
          exclude=("Fp1", "O1"),
      )
      assert "Fp1" not in raw.ch_names
      assert "O1" not in raw.ch_names
      raw = read_raw_gdf(
          gdf2_path.with_name(gdf2_path.name + ".gdf"), exclude=".+z$"
      )
      assert "AFz" not in raw.ch_names
      assert "Cz" not in raw.ch_names
      assert "Pz" not in raw.ch_names
      assert "Oz" not in raw.ch_names
  
file_path: mne-python/mne/io/edf/tests/test_gdf.py
imports: import shutil
  from datetime import datetime, timedelta, timezone
  import numpy
  import pytest
  import scipy.io
  from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_equal
  from mne import events_from_annotations, find_events, pick_types
  from mne.datasets import testing
  from mne.io import read_raw_gdf
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 5 for calling a global function with example usage: test_gdf_exclude_channels() without return types