code: def test_spectrum_io(inst, tmp_path, request, evoked):
      """Test save/load of spectrum objects."""
      pytest.importorskip("h5io")
      fname = tmp_path / f"{inst}-spectrum.h5"
      inst = _get_inst(inst, request, evoked)
      orig = inst.compute_psd()
      orig.save(fname)
      loaded = read_spectrum(fname)
      assert orig == loaded
  
imports: from functools import partial
  import numpy
  import pytest
  from matplotlib.colors import same_color
  from numpy.testing import assert_array_equal
  from mne import Annotations
  from mne.time_frequency import read_spectrum
  from mne.time_frequency.spectrum import EpochsSpectrumArray, SpectrumArray
label_desc: Use image node_id 5 for calling a global function with example usage: test_spectrum_io(inst, tmp_path, request, evoked) without return types