code: def test_nedf_header_parser(nacc):
      """Test NEDF header parsing and dtype extraction."""
      with pytest.warns(RuntimeWarning, match="stim channels.*ignored"):
          info, dt, dt_last, n_samples, n_full = _parse_nedf_header(
              stimhdr % nacc
          )
      assert n_samples == 11
      assert n_full == 2
      nchan = 4
      assert info["nchan"] == nchan
      assert dt.itemsize == 200 + nacc * 2
      if nacc:
          assert dt.names[0] == "acc"
          assert dt["acc"].shape == (nacc,)
  
      assert dt["data"].shape == (5,)  # blocks of 5 EEG samples each
      assert dt_last["data"].shape == (1,)  # plus one last extra one
  
      eegsampledt = dt["data"].subdtype[0]
      assert eegsampledt.names == ("eeg", "stim", "trig")
      assert eegsampledt["eeg"].shape == (nchan, 3)
      assert eegsampledt["stim"].shape == (2, nchan, 3)
  
file_path: mne-python/mne/io/nedf/tests/test_nedf.py
imports: import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import find_events
  from mne._fiff.constants import FIFF
  from mne.datasets import testing
  from mne.io.nedf import _parse_nedf_header, read_raw_nedf
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 1 for calling a global function with example usage: test_nedf_header_parser(nacc) without return types