code: def _load_config():
      """Helper to load prefs from ~/.vispy/vispy.json"""
      fname = _get_config_fname()
      if fname is None or not op.isfile(fname):
          return dict()
      with open(fname, "r") as fid:
          config = json.load(fid)
      return config
  
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 6 for calling a global function with example usage: _load_config() and returns: config, dict