code: def on_key_press(self, event):
      if event.key == "F":
          self.toggle_internalformat()
  
file_path: vispy/examples/gloo/texture_precision.py
imports: import numpy
  from vispy import gloo
  from vispy import app
label_desc: Use image node_id 2 for calling the Canvas obj's underlying member method code with example usage: obj.on_key_press(event) without return types