<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_path(path):
 """If given a string, return it, otherwise combine a list into a string using os.path.join"""


    if isinstance(path, str):
        return path

    return os.path.join(*path)