def parse_env(s):
m = ENV_RE.search(s)<EOL>if m is None:<EOL><INDENT>return {}<EOL><DEDENT>g1 = m.group(<NUM_LIT:1>)<EOL>env = dict(ENV_SPLIT_RE.findall(g1))<EOL>return env<EOL>
Parses the environment portion of string into a dict.