<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_branches(self):
 """Return a list with the conditional branch and the default branch."""

        if self.else_branch:
            return [self.then_branch, self.else_branch]
        return [self.then_branch]