code: def on_time_change(event):
      """Respond to MNE-Python's TimeChange event. Updates the plot."""
      time_bar.set_xdata([event.time])
      fig5.canvas.draw()
  
imports: import matplotlib.pyplot
  import mne
  from mne.viz.ui_events import TimeChange, link, publish, subscribe
label_desc: Use image node_id 2 for calling a global function with example usage: on_time_change(event) without return types