code: def hzfunc(label):
      hzdict = {"1 Hz": s0, "2 Hz": s1, "4 Hz": s2}
      ydata = hzdict[label]
      l.set_ydata(ydata)
      fig.canvas.draw()
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.widgets import RadioButtons
label_desc: Use image node_id 1 for calling a global function with example usage: hzfunc(label) without return types