def METHOD_NAME(filename):
    """
    Parse a config file from the path `filename` and yield
    a configuration object or raise SystemExit on problems.
    """
    mod_spec = importlib.util.spec_from_file_location("config_file", filename)
    module = importlib.util.module_from_spec(mod_spec)
    mod_spec.loader.exec_module(module)
    config = module.configuration
    return config