def take(self):
return self._encode_invoke(queue_take_codec)<EOL>
Retrieves and removes the head of this queue, if necessary, waits until an item becomes available.

:return: (object), the head of this queue.