code: def onpick(event):
      if event.artist != line:
          return
  
      N = len(event.ind)
      if not N:
          return
  
      figi, axs = plt.subplots(N, squeeze=False)
      for ax, dataind in zip(axs.flat, event.ind):
          ax.plot(X[dataind])
          ax.text(
              0.05,
              0.9,
              f"mu={xs[dataind]:1.3f}\nsigma={ys[dataind]:1.3f}",
              transform=ax.transAxes,
              va="top",
          )
          ax.set_ylim(-0.5, 1.5)
      figi.show()
  
label_desc: Use image node_id 1 for calling a global function with example usage: onpick(event) without return types