code: def update_time(time):
      k = np.count_nonzero(t < time)
      h_line.set_xdata(t[: k + 1])
      h_line.set_ydata(h[: k + 1])
      v_line.update(t[: k + 1], v[: k + 1])
      p.add_mesh(
          pv.Sphere(1, center=(0, 0, h[k])), name="sphere", render=False
      )
      p.update()
  
label_desc: Use image node_id 1 for calling a global function with example usage: update_time(time) without return types