code: def on_resize(self, event):
      self.context.set_viewport(0, 0, *event.physical_size)
  
file_path: vispy/examples/gloo/spatial_filters.py
imports: import numpy
  from vispy.io import load_spatial_filters
  from vispy import gloo
  from vispy import app
  from vispy.util.logs import set_log_level
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