code: def test_spectrum_proj(inst, request):
      """Test that proj is applied correctly (gh 11177)."""
      inst = request.getfixturevalue(inst)
      has_proj = inst.compute_psd(proj=True)
      no_proj = inst.compute_psd(proj=False)
      assert not np.array_equal(has_proj.get_data(), no_proj.get_data())
      # make sure only the data (and the projs) were different
      has_proj._data = no_proj._data
      with has_proj.info._unlock():
          has_proj.info["projs"] = no_proj.info["projs"]
      assert has_proj == no_proj
  
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 13 for calling a global function with example usage: test_spectrum_proj(inst, request) without return types