code: def get_config(path):
      """Load a config from disk
  
      :param path: target config
      :type path: unicode
      :return:
      :rtype: configparser.Config
      """
      if configparser is None:
          return None
  
      # Check for env specific configs first
      if os.path.exists(os.path.join(ROOT, "config", NAME, path)):
          path = os.path.join(ROOT, "config", NAME, path)
      else:
          path = os.path.join(ROOT, "config", path)
  
      if not os.path.isfile(path):
          return None
  
      conf = open(path, "rt").read()
      conf = os.path.expandvars(conf)
  
      config = configparser.SafeConfigParser()
      if sys.version_info[0] == 2:
          from io import StringIO
  
          config.readfp(StringIO(unicode(conf)))
      else:
          config.read_string(conf)
      return config
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  import glob
  import locale
  import os
  import re
  import socket
  import subprocess
  import sys
  import platform
  from io import open
  import pkg_resources
  from lore import ansi
label_desc: Use image node_id 9 for calling a global function with example usage: get_config(path) and returns: config, None, None