<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def join(*paths):
 # type: (*Text) -> Text """Join any number of paths together. Arguments: *paths (str):
 Paths to join, given as positional arguments. Returns: str: The joined path. Example: 'foo/bar/baz' 'foo/baz' '/baz' """

    absolute = False
    relpaths = []  # type: List[Text]
    for p in paths:
        if p:
            if p[0] == "/":
                del relpaths[:]
                absolute = True
            relpaths.append(p)

    path = normpath("/".join(relpaths))
    if absolute:
        path = abspath(path)
    return path