code: def release_accounts(self, owner):
          
          with self.unlock_cond:
              for account in self.owner2account[owner]:
                  self.account2owner.pop(account)
                  account.release(False)
                  self.unlocked_accounts.append(account)
              self.owner2account.pop(owner)
              self.unlock_cond.notify_all()
docs: Releases all accounts that were acquired by the given owner.
  
          :type  owner: object
          :param owner: The owner descriptor as passed to acquire_account().