<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def split_path(path, ref=None):
 """ Split a path into its components. Parameters path : str absolute or relative path with respect to `ref` ref : str or None reference path if `path` is relative Returns ------- list : str components of the path """

    path = abspath(path, ref)
    return path.strip(os.path.sep).split(os.path.sep)