def METHOD_NAME(self):
    """Remove and return an item from the queue.
    Return an item if one is immediately available, else raise QueueEmpty.
    """
    if self.empty():
        raise QueueEmpty
    item = self._get()
    self._wakeup_next(self._putters)
    return item