code: def _init():
      """Create global Config object, parse command flags."""
      global config, _data_path, _allowed_config_keys
  
      app_dir = _get_vispy_app_dir()
      if app_dir is not None:
          _data_path = op.join(app_dir, "data")
          _test_data_path = op.join(app_dir, "test_data")
      else:
          _data_path = _test_data_path = None
  
      # All allowed config keys and the types they may have
      _allowed_config_keys = {
          "data_path": (str,),
          "default_backend": (str,),
          "gl_backend": (str,),
          "gl_debug": (bool,),
          "glir_file": (str,) + file_types,
          "include_path": list,
          "logging_level": (str,),
          "qt_lib": (str,),
          "dpi": (int, type(None)),
          "profile": (
              str,
              type(None),
          ),
          "audit_tests": (bool,),
          "test_data_path": (
              str,
              type(None),
          ),
      }
  
      # Default values for all config options
      default_config_options = {
          "data_path": _data_path,
          "default_backend": "",
          "gl_backend": "gl2",
          "gl_debug": False,
          "glir_file": "",
          "include_path": [],
          "logging_level": "warning",
          "qt_lib": "any",
          "dpi": None,
          "profile": None,
          "audit_tests": False,
          "test_data_path": _test_data_path,
      }
  
      config = Config(**default_config_options)
  
      try:
          config.update(**_load_config())
      except Exception as err:
          raise Exception(
              'Error while reading vispy config file "%s":\n  %s'
              % (_get_config_fname(), str(err))
          )
      set_log_level(config["logging_level"])
  
      _parse_command_line_arguments()
  
imports: import io
  import os
  from os import path
  import inspect
  import json
  import sys
  import platform
  import getopt
  import traceback
  import tempfile
  import atexit
  from shutil import rmtree
  import numpy
  from .event import EmitterGroup, EventEmitter, Event
  from .logs import logger, set_log_level, use_log_level
label_desc: Use image node_id 1 for calling a global function with example usage: _init() without return types