code: def _assert_iter_sim(raw_sim, raw_new, new_event_id):
      events = find_events(raw_sim, initial_event=True)
      events_tuple = find_events(raw_new, initial_event=True)
      assert_array_equal(events_tuple[:, :2], events[:, :2])
      assert_array_equal(events_tuple[:, 2], new_event_id)
      data_sim = raw_sim[:-1][0]
      data_new = raw_new[:-1][0]
      assert_array_equal(data_new, data_sim)
  
imports: from copy import deepcopy
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import Epochs, SourceEstimate, VolSourceEstimate, convert_forward_solution, create_info, find_events, fit_dipole, make_ad_hoc_cov, make_bem_solution, make_forward_solution, make_sphere_model, pick_types, read_bem_solution, read_cov, read_source_spaces, read_trans, setup_source_space, setup_volume_source_space, transform_surface_to
  from mne._fiff.constants import FIFF
  from mne.bem import _surfaces_to_bem
  from mne.chpi import compute_chpi_amplitudes, compute_chpi_locs, compute_head_pos, get_chpi_info, read_head_pos
  from mne.datasets import testing
  from mne.io import RawArray, read_raw_fif
  from mne.label import Label
  from mne.simulation import add_chpi, add_ecg, add_eog, add_noise, simulate_raw, simulate_sparse_stc
  from mne.simulation.source import SourceSimulator
  from mne.source_space._source_space import _compare_source_spaces
  from mne.surface import _get_ico_surface
  from mne.tests.test_chpi import _assert_quats
  from mne.utils import catch_logging
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_iter_sim(raw_sim, raw_new, new_event_id) without return types