def load_from_path(path, mutable=False):

    util.ensure_file_exists(path)
    with util.open_file(path, 'r') as config_file:
        try:
            toml_obj = toml.loads(config_file.read())
        except Exception as e:
            raise DCOSException(
                'Error parsing config file at [{}]: {}'.format(path, e))
        return (MutableToml if mutable else Toml)(toml_obj)
View should remove impersonate_id from session and redirect.
dataset/ETHPy150Open dcos/dcos-cli/dcos/config.py/load_from_path--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UnbecomeUserTest.test_unbecome_user