code: def _check_spectrum_equivalent(spect1, spect2, tmp_path):
      data1 = spect1.get_data()
      data2 = spect2.get_data()
      assert_array_equal(data1, data2)
      assert_array_equal(spect1.freqs, spect2.freqs)
  
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 15 for calling a global function with example usage: _check_spectrum_equivalent(spect1, spect2, tmp_path) without return types