code: def import_config(config_path):
      
      if not os.path.isfile(config_path):
          raise ConfigBuilderError(
                  'Could not find config file: ' + config_path)
      loader = importlib.machinery.SourceFileLoader(config_path, config_path)
      module = loader.load_module()
  
      if not hasattr(module, 'config') or not isinstance(module.config, Config):
          raise ConfigBuilderError(
              'Could not load config file "{}": config files must contain '
              'a variable called "config" that is '
              'assigned to a Config object.'.format(config_path))
      return module.config
docs: Import a Config from a given path, relative to the current directory.
  
      The module specified by the config file must contain a variable called `configuration` that is
      assigned to a Config object.