def attention_check(self, participant=None):
if self.catch_repeats == <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT>scores = [n.score for n in participant.nodes() if n.network.role == "<STR_LIT>"]<EOL>avg = float(sum(scores)) / float(len(scores))<EOL>return avg >= self.min_acceptable_performance<EOL>
Check a participant paid attention.