code: def eglCreateWindowSurface(display, config, window, attribList=None):
      # Deal with attrib list
      attribList = _convert_attrib_list(attribList)
      surface = c_void_p(
          _lib.eglCreateWindowSurface(
              display, config, window, attribList
          )
      )
      return _check_res(surface)
  
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 9 for calling a global function with example usage: eglCreateWindowSurface(display, config, window, attribList) and returns: _check_res