def get_queues(*queue_names, **kwargs):
from .settings import QUEUES<EOL>if len(queue_names) <= <NUM_LIT:1>:<EOL><INDENT>return [get_queue(*queue_names, **kwargs)]<EOL><DEDENT>kwargs['<STR_LIT>'] = get_job_class(kwargs.pop('<STR_LIT>', None))<EOL>queue_params = QUEUES[queue_names[<NUM_LIT:0>]]<EOL>connection_params = filter_connection_params(queue_params)<EOL>queues = [get_queue(queue_names[<NUM_LIT:0>], **kwargs)]<EOL>for name in queue_names[<NUM_LIT:1>:]:<EOL><INDENT>queue = get_queue(name, **kwargs)<EOL>if type(queue) is not type(queues[<NUM_LIT:0>]):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(name, queue_names[<NUM_LIT:0>]))<EOL><DEDENT>if connection_params != filter_connection_params(QUEUES[name]):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(name, queue_names[<NUM_LIT:0>]))<EOL><DEDENT>queues.append(queue)<EOL><DEDENT>return queues<EOL>
Return queue instances from specified queue names.
All instances must use the same Redis connection.