code: def on_mouse_move(event):
      if event.inaxes is None:
          tri = -1
      else:
          tri = trifinder(event.xdata, event.ydata)
      update_polygon(tri)
      ax.set_title(f"In triangle {tri}")
      event.canvas.draw()
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.patches import Polygon
  from matplotlib.tri import Triangulation
label_desc: Use image node_id 2 for calling a global function with example usage: on_mouse_move(event) without return types