def resolve(path_or_address=None, address=None, *ignored):
if path_or_address is None or address is not None:<EOL><INDENT>return path_or_address, address<EOL><DEDENT>path = None<EOL>if split_address(path_or_address)[<NUM_LIT:1>] is not None:<EOL><INDENT>address = path_or_address<EOL><DEDENT>else:<EOL><INDENT>path = path_or_address<EOL><DEDENT>return path, address<EOL>
Returns (path, address) based on consecutive optional arguments,
[path] [address].