code: def test_egi_mff_pause_chunks(fname, tmp_path):
      """Test that on-demand of all short segments works (via I/O)."""
      pytest.importorskip("defusedxml")
      fname_temp = tmp_path / "test_raw.fif"
      raw_data = read_raw_egi(fname, preload=True).get_data()
      raw = read_raw_egi(fname)
      with pytest.warns(
          RuntimeWarning, match="Acquisition skips detected"
      ):
          raw.save(fname_temp)
      del raw
      raw_data_2 = read_raw_fif(fname_temp).get_data()
      assert_allclose(raw_data, raw_data_2)
  
imports: import os
  import shutil
  from copy import deepcopy
  from datetime import datetime, timezone
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from scipy import io
  from mne import find_events, pick_types
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_evokeds_mff, read_raw_egi, read_raw_fif
  from mne.io.egi.egi import _combine_triggers
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import object_diff
label_desc: Use image node_id 2 for calling a global function with example usage: test_egi_mff_pause_chunks(fname, tmp_path) without return types