def restore_env_from_file(env_file):
with open(env_file, '<STR_LIT:r>') as f:<EOL><INDENT>env_dict = yaml.load(f.read())<EOL><DEDENT>restore_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.