code: def resize(event=None):
      vb.pos = 1, canvas.size[1] // 2 - 1
      vb.size = canvas.size[0] - 2, canvas.size[1] // 2 - 2
  
imports: import sys
  import numpy
  from vispy import scene
  from vispy.scene.visuals import Text
label_desc: Use image node_id 1 for calling a global function with example usage: resize(event) without return types