<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def for_branch(self, branch):
 """ Return a UsageLocator for the same block in a different branch of the library. """

        return self.replace(library_key=self.library_key.for_branch(branch))