code: def eglBindAPI(api):
      """Set the current rendering API (OpenGL, OpenGL ES or OpenVG)"""
      res = _lib.eglBindAPI(api)
      if res == EGL_FALSE:
          raise RuntimeError("Could not bind API %d" % api)
      return res
  
file_path: vispy/vispy/ext/egl.py
imports: import os
  import ctypes
  from ctypes import c_int, POINTER, c_void_p, c_char_p
label_desc: Use image node_id 13 for calling a global function with example usage: eglBindAPI(api) and returns: res