code: def test_read_raw_curry(fname, tol, preload, bdf_curry_ref):
      """Test reading CURRY files."""
      raw = read_raw_curry(fname, preload=preload)
  
      assert hasattr(raw, "_data") == preload
      assert raw.n_times == bdf_curry_ref.n_times
      assert raw.info["sfreq"] == bdf_curry_ref.info["sfreq"]
  
      for field in ["kind", "ch_name"]:
          assert_array_equal(
              [ch[field] for ch in raw.info["chs"]],
              [ch[field] for ch in bdf_curry_ref.info["chs"]],
          )
  
      assert_allclose(
          raw.get_data(verbose="error"),
          bdf_curry_ref.get_data(),
          atol=tol,
      )
  
      picks, start, stop = ["C3", "C4"], 200, 800
      assert_allclose(
          raw.get_data(
              picks=picks, start=start, stop=stop, verbose="error"
          ),
          bdf_curry_ref.get_data(picks=picks, start=start, stop=stop),
          rtol=tol,
      )
      assert raw.info["dev_head_t"] is None
  
imports: from datetime import datetime, timezone
  from pathlib import Path
  from shutil import copyfile
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne._fiff.constants import FIFF
  from mne._fiff.tag import _loc_to_coil_trans
  from mne.annotations import events_from_annotations, read_annotations
  from mne.bem import _fit_sphere
  from mne.datasets import testing
  from mne.event import find_events
  from mne.io.bti import read_raw_bti
  from mne.io.curry import read_raw_curry
  from mne.io.curry.curry import FILE_EXTENSIONS, _get_curry_file_structure, _get_curry_version, _read_events_curry
  from mne.io.edf import read_raw_bdf
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import catch_logging
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_raw_curry(fname, tol, preload, bdf_curry_ref) without return types