def reserve_seqs(self, name, seqs):
if not self._have_lock: raise LockError("<STR_LIT>")<EOL>success, DNEs, already_owns, other_owns = [], [], [], []<EOL>for seq in seqs:<EOL><INDENT>if seq not in self:<EOL><INDENT>DNEs.append(seq)<EOL>continue<EOL><DEDENT>other = self[seq].res<EOL>if not other:<EOL><INDENT>self[seq].res = name<EOL>success.append(seq)<EOL><DEDENT>elif name == other:<EOL><INDENT>already_owns.append(seq)<EOL><DEDENT>else:<EOL><INDENT>other_owns.append((seq, other))<EOL><DEDENT><DEDENT>if DNEs: _logger.error("<STR_LIT>".format(name, DNEs))<EOL>if already_owns: _logger.error("<STR_LIT>".format(name, already_owns))<EOL>if other_owns: _logger.error("<STR_LIT>".format(name, other_owns))<EOL>if success: _logger.info("<STR_LIT>".format(name, success))<EOL>return success, DNEs, already_owns, other_owns<EOL>
Mark the `seqs` as reserved by `name`.
        Returns (successes, DNEs, already_owns, other_owns)