code: def animate(i):
      x = np.linspace(0, i, int(i * 25 / np.pi))
      sine.set_data(x, np.sin(x))
      x, y = np.cos(i), np.sin(i)
      point.set_data([x], [y])
      con.xy1 = x, y
      con.xy2 = i, y
      return point, sine, con
  
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.animation
  from matplotlib.patches import ConnectionPatch
label_desc: Use image node_id 1 for calling a global function with example usage: animate(i) and returns: point,  sine,  con