code: def test_filetype_checks():
      """Tests for various error meaasges for wrong filetypes."""
      with pytest.raises(ValueError, match="does not match"):
          _read_header(edf_test_fname)
      with pytest.raises(NotImplementedError, match="Only NSx files"):
          read_raw_nsx(edf_test_fname)
  
file_path: mne-python/mne/io/nsx/tests/test_nsx.py
imports: import os
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from mne import make_fixed_length_epochs
  from mne._fiff.constants import FIFF
  from mne._fiff.meas_info import _empty_info
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_raw_nsx
  from mne.io.nsx.nsx import _decode_online_filters, _read_header
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 2 for calling a global function with example usage: test_filetype_checks() without return types