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","."]
docstr: For the app backends to create the GLShared object.
  
  Parameters
  ----------
  name : str
      The name.
  ref : object
      The reference.
docstr_tok: ["For","the","app","backends","to","create","the","GLShared","object",".","Parameters","--","--","--","--","--","name",":","str","The","name",".","ref",":","object","The","reference","."]
code: def create_shared(self, name, ref):
      """For the app backends to create the GLShared object.
  
      Parameters
      ----------
      name : str
          The name.
      ref : object
          The reference.
      """
      if self._shared is not None:
          raise RuntimeError("Can only set_shared once.")
      self._shared = GLShared(name, ref)
  
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 4 for calling the GLContext obj's underlying member method code with example usage: obj.create_shared(name, ref) without return types