<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def atlas_peer_dequeue_all( peer_queue=None ):
 """ Get all queued peers """


    peers = []
    with AtlasPeerQueueLocked(peer_queue) as pq:
        while len(pq) > 0:
            peers.append( pq.pop(0) )

    return peers