code: def get_queues(*queue_names, **kwargs):
      
      from .settings import QUEUES
  
      if len(queue_names) <= 1:
          # Return "default" queue if no queue name is specified
          # or one queue with specified name
          return [get_queue(*queue_names, **kwargs)]
  
      # will return more than one queue
      # import job class only once for all queues
      kwargs['job_class'] = get_job_class(kwargs.pop('job_class', None))
  
      queue_params = QUEUES[queue_names[0]]
      connection_params = filter_connection_params(queue_params)
      queues = [get_queue(queue_names[0], **kwargs)]
  
      # do consistency checks while building return list
      for name in queue_names[1:]:
          queue = get_queue(name, **kwargs)
          if type(queue) is not type(queues[0]):
              raise ValueError(
                  'Queues must have the same class.'
                  '"{0}" and "{1}" have '
                  'different classes'.format(name, queue_names[0]))
          if connection_params != filter_connection_params(QUEUES[name]):
              raise ValueError(
                  'Queues must have the same redis connection.'
                  '"{0}" and "{1}" have '
                  'different connections'.format(name, queue_names[0]))
          queues.append(queue)
  
      return queues
docs: Return queue instances from specified queue names.
      All instances must use the same Redis connection.