def parse_path(path):
if path is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>parts = path.strip("<STR_LIT:/>").split("<STR_LIT:/>")<EOL>database = unquote_plus(parts[<NUM_LIT:0>]) if len(parts) else None<EOL>schema = parts[<NUM_LIT:1>] if len(parts) > <NUM_LIT:1> else None<EOL>return database, schema<EOL>
Get database name and database schema from path.

:param path: "/"-delimited path, parsed as
 "/<database name>/<database schema>"
:return: tuple with (database or None, schema or None)