code: def test_new_data():
      """Test reading raw cnt files with different header."""
      with pytest.warns(RuntimeWarning):
          raw = read_raw_cnt(input_fname=fname_bad_spans, header="new")
  
      assert raw.info["bads"] == ["F8"]
  
file_path: mne-python/mne/io/cnt/tests/test_cnt.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from mne import pick_types
  from mne.annotations import read_annotations
  from mne.datasets import testing
  from mne.io.cnt import read_raw_cnt
  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_new_data() without return types