<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pathsplit(pth, dropext=True):
 """Split a path into a tuple of all of its components."""


    if dropext:
        pth = os.path.splitext(pth)[0]
    parts = os.path.split(pth)
    if parts[0] == '':
        return parts[1:]
    elif len(parts[0]) == 1:
        return parts
    else:
        return pathsplit(parts[0], dropext=False) + parts[1:]