code: def test_vhdr_codepage_ansi(tmp_path):
      """Test BV reading with ANSI codepage."""
      raw_init = read_raw_brainvision(vhdr_path)
      data_expected, times_expected = raw_init[:]
      ansi_vhdr_path = tmp_path / vhdr_path.name
      ansi_vmrk_path = tmp_path / vmrk_path.name
      ansi_eeg_path = tmp_path / eeg_path.name
      # copy data file
      shutil.copy(eeg_path, ansi_eeg_path)
      # modify header file
      with open(ansi_vhdr_path, "wb") as fout:
          with open(vhdr_path, "rb") as fin:
              for line in fin:
                  # Common Infos section
                  if line.startswith(b"Codepage"):
                      line = b"Codepage=ANSI\n"
                  fout.write(line)
      # modify marker file
      with open(ansi_vmrk_path, "wb") as fout:
          with open(vmrk_path, "rb") as fin:
              for line in fin:
                  # Common Infos section
                  if line.startswith(b"Codepage"):
                      line = b"Codepage=ANSI\n"
                  fout.write(line)
  
      raw = read_raw_brainvision(ansi_vhdr_path)
      data_new, times_new = raw[:]
  
      assert raw_init.ch_names == raw.ch_names
      assert_allclose(data_new, data_expected, atol=1e-15)
      assert_allclose(times_new, times_expected, atol=1e-15)
  
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 5 for calling a global function with example usage: test_vhdr_codepage_ansi(tmp_path) without return types