code: def test_event_id_stability_when_save_and_fif_reload(tmp_path):
      """Test load events from brainvision annotations when read_raw_fif."""
      fname = tmp_path / "bv-raw.fif"
      raw = read_raw_brainvision(vhdr_path, eog=eog)
      original_events, original_event_id = events_from_annotations(raw)
  
      raw.save(fname)
      raw = read_raw_fif(fname)
      events, event_id = events_from_annotations(raw)
  
      assert event_id == original_event_id
      assert_array_equal(events, original_events)
  
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 20 for calling a global function with example usage: test_event_id_stability_when_save_and_fif_reload(tmp_path) without return types