code: def _load_config():
      if "FIFTYONE_CONFIG_PATH" in os.environ:
          config_path = os.environ["FIFTYONE_CONFIG_PATH"]
      else:
          config_path = os.path.join(
              os.path.expanduser("~"), ".fiftyone", "config.json"
          )
  
      config = {}
  
      if os.path.isfile(config_path):
          try:
              with open(config_path, "r") as f:
                  config = json.load(f)
          except Exception as e:
              logger.warning(
                  "Failed to read config from '%s': %s",
                  config_path,
                  str(e),
              )
  
      return config
  
imports: import logging
  import json
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: _load_config() and returns: config