code: def on_move(event):
      if event.inaxes:
          print(
              f"data coords {event.xdata} {event.ydata},",
              f"pixel coords {event.x} {event.y}",
          )
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.backend_bases import MouseButton
label_desc: Use image node_id 1 for calling a global function with example usage: on_move(event) without return types