<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def root (path, root):
 """ If 'path' is relative, it is rooted at 'root'. Otherwise, it's unchanged. """

    if os.path.isabs (path):
        return path
    else:
        return os.path.join (root, path)