code: def on_resize(event):
      program["iResolution"] = event.size
      gloo.set_viewport(0, 0, event.size[0], event.size[1])
  
imports: from vispy import app, gloo
label_desc: Use image node_id 2 for calling a global function with example usage: on_resize(event) without return types