<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_old_sha(diff_part):
 """ Returns the SHA for the original file that was changed in a diff part. """

    r = re.compile(r'index ([a-fA-F\d]*)')
    return r.search(diff_part).groups()[0]