<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def guess_title(basename):
 """ Attempt to guess the title from the filename """


    base, _ = os.path.splitext(basename)
    return re.sub(r'[ _-]+', r' ', base).title()