code: def on_resize(self, event):
      width, height = event.physical_size
      gloo.set_viewport(0, 0, width, height)
  
imports: from vispy import app, gloo
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