def set_env_from_file(env_file):
with open(env_file, '<STR_LIT:r>') as f:<EOL><INDENT>env_dict = yaml.load(f.read())<EOL><DEDENT>if '<STR_LIT>' in env_dict:<EOL><INDENT>env_dict = env_dict['<STR_LIT>']<EOL><DEDENT>set_env(env_dict)<EOL>
Restore the current environment from an environment stored in a yaml
    yaml file.

    :param env_file: Path to environment yaml file.