class_docstr: An object encapsulating data necessary for a OpenGL context
  
  Parameters
  ----------
  config : dict | None
      The requested configuration.
  shared : instance of GLContext | None
      The shared context.
class_docstr_tok: ["An","object","encapsulating","data","necessary","for","a","OpenGL","context","Parameters","--","--","--","--","--","config",":","dict","|","None","The","requested","configuration",".","shared",":","instance","of","GLContext","|","None","The","shared","context","."]
code: def __init__(self, config=None, shared=None):
      self._set_config(config)
      self._shared = shared if (shared is not None) else GLShared()
      assert isinstance(self._shared, GLShared)
      self._glir = GlirQueue()
      self._do_CURRENT_command = (
          False  # flag that CURRENT cmd must be given
      )
      self._last_viewport = None
  
imports: from copy import deepcopy
  import weakref
  from .glir import GlirQueue, BaseGlirParser, GlirParser, glir_logger
  from .wrappers import BaseGlooFunctions
  from ..None import config
label_desc: Use image node_id 1 to create a new GLContext object from inherited base classes: BaseGlooFunctions with example: obj = GLContext(config, shared)