def get_assignment(self, assignment_id):
try:<EOL><INDENT>response = self.mturk.get_assignment(AssignmentId=assignment_id)<EOL><DEDENT>except ClientError as ex:<EOL><INDENT>if "<STR_LIT>" in str(ex):<EOL><INDENT>return None<EOL><DEDENT>raise<EOL><DEDENT>return self._translate_assignment(response["<STR_LIT>"])<EOL>
Get an assignment by ID and reformat the response.