def get_item(queue, i):
    """
    Get an item from the queue by index number without removing any items.

    Note: This was designed for `Queue.Queue`. Don't try to use this, for
    example, on `multiprocessing.Queue`.
    """
    with queue.mutex:
        return queue.queue[i]
