code: def get_branch_by_id(self, branch_id):
          
          for branch in self.branches:
              if branch.branch_id == branch_id:
                  return branch
          raise AssertionError("couldn't find branch '%s'" % branch_id)
docs: Return :class:`Branch` object belonging to this branch set with id
          equal to ``branch_id``.