code: def on_draw(e):
      gloo.clear("white")
      segments.draw()
  
imports: import numpy
  from vispy import app, gloo
  from vispy.visuals.collections import SegmentCollection
label_desc: Use image node_id 1 for calling a global function with example usage: on_draw(e) without return types