def pop_path(path):
if path in ("<STR_LIT>", "<STR_LIT:/>"):<EOL><INDENT>return ("<STR_LIT>", "<STR_LIT>")<EOL><DEDENT>assert path.startswith("<STR_LIT:/>")<EOL>first, _sep, rest = path.lstrip("<STR_LIT:/>").partition("<STR_LIT:/>")<EOL>return (first, "<STR_LIT:/>" + rest)<EOL>
Return '/a/b/c' -> ('a', '/b/c').