code: def test_plot_topo_image_epochs():
      """Test plotting of epochs image topography."""
      title = "ERF images - MNE sample data"
      epochs = _get_epochs()
      epochs.load_data()
      cmap = mne_analyze_colormap(format="matplotlib")
      data_min = epochs._data.min()
      plt.close("all")
      fig = plot_topo_image_epochs(
          epochs,
          sigma=0.5,
          vmin=-200,
          vmax=200,
          colorbar=True,
          title=title,
          cmap=cmap,
      )
      assert epochs._data.min() == data_min
      num_figures_before = len(plt.get_fignums())
      _fake_click(fig, fig.axes[0], (0.08, 0.64))
      assert num_figures_before + 1 == len(plt.get_fignums())
      # test for auto-showing a colorbar when only 1 sensor type
      ep = epochs.copy().pick(picks="eeg")
      fig = plot_topo_image_epochs(
          ep, vmin=None, vmax=None, colorbar=None, cmap=cmap
      )
      ax = [
          x
          for x in fig.get_children()
          if isinstance(x, matplotlib.axes.Axes)
      ]
      # include inset axes (newer MPL)
      ax.extend(
          y
          for x in ax
          for y in x.get_children()
          if isinstance(y, matplotlib.axes.Axes)
      )
      qm_cmap = [
          y.cmap
          for x in ax
          for y in x.get_children()
          if isinstance(y, matplotlib.collections.QuadMesh)
      ]
      assert len(qm_cmap) >= 1
      assert qm_cmap[0] is cmap
  
imports: from collections import namedtuple
  from pathlib import Path
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pytest
  from mne import Epochs, compute_proj_evoked, read_cov, read_events
  from mne.channels import read_layout
  from mne.io import read_raw_fif
  from mne.time_frequency.tfr import AverageTFR
  from mne.utils import _record_warnings
  from mne.viz import _get_presser, mne_analyze_colormap, plot_evoked_topo, plot_topo_image_epochs
  from mne.viz.evoked import _line_plot_onselect
  from mne.viz.topo import _imshow_tfr, _plot_update_evoked_topo_proj, iter_topography
  from mne.viz.utils import _fake_click
label_desc: Use image node_id 9 for calling a global function with example usage: test_plot_topo_image_epochs() without return types