code: def allocate_pixels_buffer(width, height):
      """Helper function to allocate a buffer to contain an image of
      width * height suitable for OSMesaMakeCurrent
      """
      # Seems like OSMesa has some trouble with non-RGBA buffers, so enforce
      # RGBA
      return (_c_uint * width * height * 4)()
  
file_path: vispy/vispy/ext/osmesa.py
imports: from __future__ import print_function
  import os
  import ctypes
  import ctypes.util
  from ctypes import c_int, c_uint, c_void_p
label_desc: Use image node_id 1 for calling a global function with example usage: allocate_pixels_buffer(width, height) and returns: unknown