code: def test_brainvision_data_highpass_filters():
      """Test reading raw Brain Vision files with amplifier filter settings."""
      # Homogeneous highpass in seconds (default measurement unit)
      raw = _test_raw_reader(
          read_raw_brainvision, vhdr_fname=vhdr_highpass_path, eog=eog
      )
  
      assert raw.info["highpass"] == 1.0 / (2 * np.pi * 10)
      assert raw.info["lowpass"] == 250.0
  
      # Heterogeneous highpass in seconds (default measurement unit)
      with pytest.warns(
          RuntimeWarning, match="different .*pass filters"
      ) as w:
          raw = _test_raw_reader(
              read_raw_brainvision,
              vhdr_fname=vhdr_mixed_highpass_path,
              eog=eog,
          )
  
      w = [str(ww.message) for ww in w]
      assert not any("different lowpass filters" in ww for ww in w), w
      assert all("different highpass filters" in ww for ww in w), w
  
      assert raw.info["highpass"] == 1.0 / (2 * np.pi * 10)
      assert raw.info["lowpass"] == 250.0
  
      # Homogeneous highpass in Hertz
      raw = _test_raw_reader(
          read_raw_brainvision,
          vhdr_fname=vhdr_highpass_hz_path,
          eog=eog,
      )
  
      assert raw.info["highpass"] == 10.0
      assert raw.info["lowpass"] == 250.0
  
      # Heterogeneous highpass in Hertz
      with pytest.warns(
          RuntimeWarning, match="different .*pass filters"
      ) as w:
          raw = _test_raw_reader(
              read_raw_brainvision,
              vhdr_fname=vhdr_mixed_highpass_hz_path,
              eog=eog,
          )
  
      w = [str(ww.message) for ww in w]
      assert not any("will be dropped" in ww for ww in w), w
      assert not any("different lowpass filters" in ww for ww in w), w
      assert all("different highpass filters" in ww for ww in w), w
  
      assert raw.info["highpass"] == 5.0
      assert raw.info["lowpass"] == 250.0
  
imports: import datetime
  import re
  import shutil
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import concatenate_raws, pick_types, read_annotations
  from mne._fiff.constants import FIFF
  from mne.annotations import events_from_annotations
  from mne.datasets import testing
  from mne.io import read_raw_brainvision, read_raw_fif
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import _stamp_to_dt, object_diff
label_desc: Use image node_id 9 for calling a global function with example usage: test_brainvision_data_highpass_filters() without return types