code: def update(val):
      line.set_ydata(f(t, amp_slider.val, freq_slider.val))
      fig.canvas.draw_idle()
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.widgets import Button, Slider
label_desc: Use image node_id 2 for calling a global function with example usage: update(val) without return types