code: def test_clickable_image():
      """Test the ClickableImage class."""
      # Gen data and create clickable image
      im = np.random.RandomState(0).randn(100, 100)
      clk = ClickableImage(im)
      clicks = [(12, 8), (46, 48), (10, 24)]
  
      # Generate clicks
      for click in clicks:
          _fake_click(clk.fig, clk.ax, click, xform="data")
      assert_allclose(np.array(clicks), np.array(clk.coords))
      assert len(clicks) == len(clk.coords)
  
      # Exporting to layout
      lt = clk.to_layout()
      assert lt.pos.shape[0] == len(clicks)
      assert_allclose(
          lt.pos[1, 0] / lt.pos[2, 0],
          clicks[1][0] / float(clicks[2][0]),
      )
      clk.plot_clicks()
      plt.close("all")
  
imports: from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from mne import read_evokeds
  from mne.epochs import Epochs
  from mne.event import read_events
  from mne.io import read_raw_fif
  from mne.viz import ClickableImage, add_background_image, mne_analyze_colormap
  from mne.viz.ui_events import ColormapRange, link, subscribe
  from mne.viz.utils import _compute_scalings, _fake_click, _fake_keypress, _fake_scroll, _get_color_list, _make_event_color_dict, _setup_vmin_vmax, _validate_if_list_of_axes, centers_to_edges, compare_fiff, concatenate_images
label_desc: Use image node_id 5 for calling a global function with example usage: test_clickable_image() without return types