code: def _set_config(c):
      """Set gl configuration for GLFW."""
      glfw.window_hint(glfw.RED_BITS, c["red_size"])
      glfw.window_hint(glfw.GREEN_BITS, c["green_size"])
      glfw.window_hint(glfw.BLUE_BITS, c["blue_size"])
      glfw.window_hint(glfw.ALPHA_BITS, c["alpha_size"])
  
      glfw.window_hint(glfw.ACCUM_RED_BITS, 0)
      glfw.window_hint(glfw.ACCUM_GREEN_BITS, 0)
      glfw.window_hint(glfw.ACCUM_BLUE_BITS, 0)
      glfw.window_hint(glfw.ACCUM_ALPHA_BITS, 0)
  
      glfw.window_hint(glfw.DEPTH_BITS, c["depth_size"])
      glfw.window_hint(glfw.STENCIL_BITS, c["stencil_size"])
      # glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, c['major_version'])
      # glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, c['minor_version'])
      # glfw.window_hint(glfw.SRGB_CAPABLE, c['srgb'])
      glfw.window_hint(glfw.SAMPLES, c["samples"])
      glfw.window_hint(glfw.STEREO, c["stereo"])
      if not c["double_buffer"]:
          raise RuntimeError(
              "GLFW must double buffer, consider using a "
              "different backend, or using double buffering"
          )
  
imports: from __future__ import division
  import atexit
  from time import sleep
  import gc
  import os
  from ..base import BaseApplicationBackend, BaseCanvasBackend, BaseTimerBackend
  from ...util import keys, logger
  from ...util.ptime import time
  from ...None import config
label_desc: Use image node_id 2 for calling a global function with example usage: _set_config(c) without return types