code: def test_spectrum_copy(raw_spectrum):
      """Test copying Spectrum objects."""
      spect_copy = raw_spectrum.copy()
      assert raw_spectrum == spect_copy
      assert id(raw_spectrum) != id(spect_copy)
      spect_copy._freqs = None
      assert raw_spectrum.freqs is not None
  
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 6 for calling a global function with example usage: test_spectrum_copy(raw_spectrum) without return types