code: def on_draw(event):
      if not visual.animate_layout():
          canvas.update()
  
imports: import sys
  import networkx
  from vispy import app, scene
  from vispy.visuals.graphs import layouts
label_desc: Use image node_id 1 for calling a global function with example usage: on_draw(event) without return types