code: def on_key_press(event):
      if event.text == "1":
          for cam in cams:
              flip = cam.flip
              cam.flip = not flip[0], flip[1], flip[2]
      elif event.text == "2":
          for cam in cams:
              flip = cam.flip
              cam.flip = flip[0], not flip[1], flip[2]
      elif event.text == "3":
          for cam in cams:
              flip = cam.flip
              cam.flip = flip[0], flip[1], not flip[2]
      elif event.text == "4":
          up = next(ups)
          print("up: " + up)
          for cam in cams:
              cam.up = up
      if event.text == "5":
          cam_toggle = {cam1: cam2, cam2: cam3, cam3: cam4, cam4: cam1}
          view.camera = cam_toggle.get(view.camera, cam2)
          print(view.camera.name + " camera")
      elif event.text == "0":
          for cam in cams:
              cam.set_range()
  
imports: from itertools import cycle
  import numpy
  from vispy import app, scene, io
label_desc: Use image node_id 1 for calling a global function with example usage: on_key_press(event) without return types