code: def test_edf_export_warns_on_non_voltage_channels(tmp_path):
      """Test saving a Raw array containing a non-voltage channel."""
      temp_fname = tmp_path / "test.edf"
  
      raw = _create_raw_for_edf_tests()
      raw.set_channel_types({"9": "hbr"}, on_unit_change="ignore")
      with pytest.warns(RuntimeWarning, match="Non-voltage channels"):
          raw.export(temp_fname, overwrite=True)
  
      # data should match up to the non-accepted channel
      raw_read = read_raw_edf(temp_fname, preload=True)
      assert raw.ch_names == raw_read.ch_names
      assert_array_almost_equal(
          raw.get_data()[:-1], raw_read.get_data()[:-1], decimal=10
      )
      assert_array_equal(raw.times, raw_read.times)
  
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 7 for calling a global function with example usage: test_edf_export_warns_on_non_voltage_channels(tmp_path) without return types