<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def normpath(path):
 """ Normalize ``path``, collapsing redundant separators and up-level refs. """

    scheme, netloc, path_ = parse(path)
    return unparse(scheme, netloc, os.path.normpath(path_))