code: def get_worker_class(worker_class=None):
      
      RQ = getattr(settings, 'RQ', {})
  
      if worker_class is None:
          worker_class = Worker
          if 'WORKER_CLASS' in RQ:
              worker_class = RQ.get('WORKER_CLASS')
  
      if isinstance(worker_class, six.string_types):
          worker_class = import_attribute(worker_class)
      return worker_class
docs: Return worker class from RQ settings, otherwise return Worker.
      If `worker_class` is not None, it is used as an override (can be
      python import path as string).