code: def update():
      global mousepos
      # sim.pos[0] = sim.pos[0] * 0.9 + mousepos * 0.1
      s = 0.9
      sim.pos[0] = sim.pos[0] * s + mousepos * (1.0 - s)
      sim.update()
  
imports: import numpy
  import verlet_chain
  import pyqtgraph
label_desc: Use image node_id 4 for calling a global function with example usage: update() without return types