code: def on_resize(self, event):
      self.activate_zoom()
  
file_path: vispy/examples/gloo/lighted_cube.py
imports: import numpy
  from vispy import gloo, app
  from vispy.gloo import Program, VertexBuffer, IndexBuffer
  from vispy.util.transforms import perspective, translate, rotate
  from vispy.geometry import create_cube
label_desc: Use image node_id 3 for calling the Canvas obj's underlying member method code with example usage: obj.on_resize(event) without return types