code: def eglChooseConfig(display, attribList=DEFAULT_ATTRIB_LIST):
      attribList = _convert_attrib_list(attribList)
      numConfigs = (_c_int * 1)()
      _lib.eglChooseConfig(display, attribList, None, 0, numConfigs)
      n = numConfigs[0]
      if n <= 0:
          raise RuntimeError("Could not find any suitable config.")
      config = (c_void_p * n)()
      _lib.eglChooseConfig(display, attribList, config, n, numConfigs)
      return config
  
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 7 for calling a global function with example usage: eglChooseConfig(display, attribList) and returns: config