code: def fail_participant(self, participant):
          
          participant_nodes = Node.query.filter_by(
              participant_id=participant.id, failed=False
          ).all()
  
          for node in participant_nodes:
              node.fail()
docs: Fail all the nodes of a participant.