code: def test_spectrum_getitem_epochs(epochs_spectrum):
      """Test Spectrum.__getitem__ for Epochs-derived spectra."""
      # testing data has just one epoch, its event_id label is "1"
      want = epochs_spectrum.get_data()
      got = epochs_spectrum["1"].get_data()
      assert_array_equal(want, got)
  
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 10 for calling a global function with example usage: test_spectrum_getitem_epochs(epochs_spectrum) without return types