code: def _resize(self, width, height, physical_width, physical_height):
      gl.glViewport(0, 0, physical_width, physical_height)
      projection = perspective(35.0, width / float(height), 2.0, 10.0)
      loc = gl.glGetUniformLocation(self.cube, "u_projection")
      gl.glUniformMatrix4fv(loc, 1, False, projection)
  
file_path: vispy/examples/gloo/gl/cube.py
imports: import math
  import numpy
  from vispy import app
  from vispy.gloo import gl
label_desc: Use image node_id 5 for calling the Canvas obj's underlying member method code with example usage: obj._resize(width, height, physical_width, physical_height) without return types