<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def branches(self) -> Set[str]: """ Return the set of branches that contain the commit. :return: set(str) branches """

        if self._branches is None:
            self._branches = self._get_branches()

        return self._branches