<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_transcript_number(effect):
 """ Try to parse the number at the end of a transcript name associated with an effect. e.g. TP53-001 returns the integer 1. Parameters effect : subclass of MutationEffect Returns int """

    name = name_of_associated_transcript(effect)
    if "-" not in name:
        return 0
    parts = name.split("-")
    last_part = parts[-1]
    if last_part.isdigit():
        return int(last_part)
    else:
        return 0