code: def test_rawarray_edf(tmp_path):
      """Test saving a Raw array with integer sfreq to EDF."""
      raw = _create_raw_for_edf_tests()
  
      # include subject info and measurement date
      raw.info["subject_info"] = dict(
          first_name="mne",
          last_name="python",
          birthday=(1992, 1, 20),
          sex=1,
          hand=3,
      )
      time_now = datetime.now()
      meas_date = datetime(
          year=time_now.year,
          month=time_now.month,
          day=time_now.day,
          hour=time_now.hour,
          minute=time_now.minute,
          second=time_now.second,
          tzinfo=timezone.utc,
      )
      raw.set_meas_date(meas_date)
      temp_fname = tmp_path / "test.edf"
  
      raw.export(temp_fname, add_ch_type=True)
      raw_read = read_raw_edf(
          temp_fname, infer_types=True, preload=True
      )
  
      assert raw.ch_names == raw_read.ch_names
      assert_array_almost_equal(
          raw.get_data(), raw_read.get_data(), decimal=10
      )
      assert_array_equal(raw.times, raw_read.times)
  
      orig_ch_types = raw.get_channel_types()
      read_ch_types = raw_read.get_channel_types()
      assert_array_equal(orig_ch_types, read_ch_types)
      assert raw.info["meas_date"] == raw_read.info["meas_date"]
  
imports: from contextlib import nullcontext
  from datetime import datetime, timezone
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal
  from mne import Annotations, Epochs, create_info, read_epochs_eeglab, read_evokeds, read_evokeds_mff
  from mne.datasets import misc, testing
  from mne.export import export_evokeds, export_evokeds_mff
  from mne.fixes import _compare_version
  from mne.io import RawArray, read_raw_brainvision, read_raw_edf, read_raw_eeglab, read_raw_fif
  from mne.tests.test_epochs import _get_data
  from mne.utils import _check_edfio_installed, _record_warnings, _resource_path, object_diff
label_desc: Use image node_id 6 for calling a global function with example usage: test_rawarray_edf(tmp_path) without return types