code: def on_resize(event):
      width, height = event.size
      gloo.set_viewport(0, 0, width, height)
  
imports: import sys
  import numpy
  from vispy import app, gloo
  from vispy.visuals.collections import PointCollection
  from vispy.visuals.transforms import PanZoomTransform
label_desc: Use image node_id 2 for calling a global function with example usage: on_resize(event) without return types