def get_workers_with_qualification(self, qualification_id):
done = False<EOL>next_token = None<EOL>while not done:<EOL><INDENT>if next_token is not None:<EOL><INDENT>response = self.mturk.list_workers_with_qualification_type(<EOL>QualificationTypeId=qualification_id,<EOL>MaxResults=MAX_SUPPORTED_BATCH_SIZE,<EOL>Status="<STR_LIT>",<EOL>NextToken=next_token,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>response = self.mturk.list_workers_with_qualification_type(<EOL>QualificationTypeId=qualification_id,<EOL>MaxResults=MAX_SUPPORTED_BATCH_SIZE,<EOL>Status="<STR_LIT>",<EOL>)<EOL><DEDENT>if response:<EOL><INDENT>for r in response["<STR_LIT>"]:<EOL><INDENT>yield {"<STR_LIT:id>": r["<STR_LIT>"], "<STR_LIT>": r["<STR_LIT>"]}<EOL><DEDENT><DEDENT>if "<STR_LIT>" in response:<EOL><INDENT>next_token = response["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>done = True<EOL><DEDENT><DEDENT>
Get workers with the given qualification.