code: def test_plot_psd_epochs_ctf(raw_ctf):
      """Test plotting CTF epochs psd (+topomap)."""
      evts = make_fixed_length_events(raw_ctf)
      epochs = Epochs(raw_ctf, evts, preload=True)
      old_defaults = dict(picks="data", exclude="bads")
      # EEG060 is flat in this dataset
      with pytest.warns(UserWarning, match="for channel EEG060"):
          spectrum = epochs.compute_psd()
          for dB in [True, False]:
              spectrum.plot(dB=dB)
      spectrum.drop_channels(["EEG060"])
      spectrum.plot(
          spatial_colors=False,
          average=False,
          amplitude=False,
          **old_defaults,
      )
      with pytest.raises(RuntimeError, match="No frequencies in band"):
          spectrum.plot_topomap(bands=[(0, 0.01, "foo")])
      spectrum.plot_topomap()
  
imports: import platform
  import matplotlib.pyplot
  import numpy
  import pytest
  from mne import Epochs, EpochsArray, create_info
  from mne.datasets import testing
  from mne.event import make_fixed_length_events
  from mne.viz import plot_drop_log
label_desc: Use image node_id 18 for calling a global function with example usage: test_plot_psd_epochs_ctf(raw_ctf) without return types