code: def list_by_claim(self, claim):
          
          if not isinstance(claim, QueueClaim):
              claim = self._claim_manager.get(claim)
          return claim.messages
docs: Returns a list of all the messages from this queue that have been
          claimed by the specified claim. The claim can be either a claim ID or a
          QueueClaim object.