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