code: def on_draw(self, event):
      gloo.clear("black")
      gloo.set_viewport(0, 0, *self.physical_size)
  
      for visual in self.visuals:
          visual.draw()
  
file_path: vispy/examples/basics/visuals/bezier.py
imports: import sys
  from vispy import app, gloo, visuals
  from vispy.geometry import curves
  from vispy.visuals.transforms import STTransform, NullTransform
label_desc: Use image node_id 2 for calling the Canvas obj's underlying member method code with example usage: obj.on_draw(event) without return types