code: def test_read_eog_regression(tmp_path):
      """Test saving and loading an EOGRegression object."""
      pytest.importorskip("h5io")
      raw = read_raw_fif(raw_fname).pick(["eeg", "eog"])
      raw.load_data()
      model = EOGRegression().fit(raw)
  
      model.save(tmp_path / "weights.h5", overwrite=True)
      model2 = read_eog_regression(tmp_path / "weights.h5")
      assert_array_equal(model.picks, model2.picks)
      assert_array_equal(model.picks_artifact, model2.picks_artifact)
      assert_array_equal(model.exclude, model2.exclude)
      assert_array_equal(model.coef_, model2.coef_)
      assert model.proj == model2.proj
      assert model.info_.keys() == model2.info_.keys()
  
file_path: mne-python/mne/preprocessing/tests/test_regress.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal, assert_array_less
  from mne import pick_types
  from mne.datasets import testing
  from mne.io import read_raw_fif
  from mne.preprocessing import EOGRegression, create_eog_epochs, read_eog_regression, regress_artifact
label_desc: Use image node_id 3 for calling a global function with example usage: test_read_eog_regression(tmp_path) without return types