code: def get_workers(self, status=None, chosen_hits=None, assignment_ids=None, all_studies=False):
          '''
          Status, if set, can be one of `Submitted`, `Approved`, or `Rejected`
          '''
          if assignment_ids:
              workers = [self.get_worker(assignment_id) for assignment_id in assignment_ids]
          else:
              workers = self.amt_services.get_workers(assignment_status=status, chosen_hits=chosen_hits)
  
          if workers is False:
              raise Exception('*** failed to get workers')
  
          if not all_studies:
              my_hitids = self._get_my_hitids()
              workers = [worker for worker in workers if worker['hitId'] in my_hitids]
  
          workers = [self.add_bonus(worker) for worker in workers]
          return workerf get_workers(self, status=None, chosen_hits=None, assignment_ids=None, all_studies=False):
          '''
          Status, if set, can be one of `Submitted`, `Approved`, or `Rejected`
          '''
          if assignment_ids:
              workers = [self.get_worker(assignment_id) for assignment_id in assignment_ids]
          else:
              workers = self.amt_services.get_workers(assignment_status=status, chosen_hits=chosen_hits)
  
          if workers is False:
              raise Exception('*** failed to get workers')
  
          if not all_studies:
              my_hitids = self._get_my_hitids()
              workers = [worker for worker in workers if worker['hitId'] in my_hitids]
  
          workers = [self.add_bonus(worker) for worker in workers]
          return workers
docs: Status, if set, can be one of `Submitted`, `Approved`, or `Rejected`