code: def hover(event):
      if fig.canvas.widgetlock.locked():
          # Don't do anything if the zoom/pan tools have been enabled.
          return
  
      fig.canvas.set_cursor(
          event.inaxes.cursor_to_use
          if event.inaxes
          else Cursors.POINTER
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: hover(event) without return types