code: def plot_sig(ax, time, sig):
      ax.axis((time[0], time[-1], -15, 15))
      (pl,) = ax.plot(time, sig, lw=0.75)
      ax.axhspan(
          -14,
          14,
          edgecolor="k",
          facecolor="none",
          xmin=-test_time_start / (test_time_end - test_time_start),
          xmax=(duration - test_time_start)
          / (test_time_end - test_time_start),
      )
      return pl
  
file_path: pyRiemann/examples/artifacts/plot_detect_riemannian_potato_EEG.py
imports: from functools import partial
  import os
  import numpy
  from matplotlib import pyplot
  from matplotlib.animation import FuncAnimation
  from mne.datasets import sample
  from mne.io import read_raw_fif
  from mne import make_fixed_length_epochs
  from pyriemann.estimation import Covariances
  from pyriemann.clustering import Potato
  from pyriemann.utils.viz import _add_alpha
label_desc: Use image node_id 3 for calling a global function with example usage: plot_sig(ax, time, sig) and returns: pl