<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_parent_folder(filename):
 """ Create parent folder for input filename recursively :param filename: input filename :type filename: str :raises: error if folder cannot be created """

    path = os.path.dirname(filename)
    if path != '':
        make_folder(path)