def get_worker(*queue_names, **kwargs):
job_class = get_job_class(kwargs.pop('<STR_LIT>', None))<EOL>queue_class = kwargs.pop('<STR_LIT>', None)<EOL>queues = get_queues(*queue_names, **{'<STR_LIT>': job_class,<EOL>'<STR_LIT>': queue_class})<EOL>queue_class = queues[<NUM_LIT:0>].__class__<EOL>worker_class = get_worker_class(kwargs.pop('<STR_LIT>', None))<EOL>return worker_class(queues,<EOL>connection=queues[<NUM_LIT:0>].connection,<EOL>exception_handlers=get_exception_handlers() or None,<EOL>job_class=job_class,<EOL>queue_class=queue_class,<EOL>**kwargs)<EOL>
Returns a RQ worker for all queues or specified ones.