<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def parse_yaml_node(self, y):
        '''Parse a YAML specification of a participant into this object.'''
        if 'participant' not in y:
            raise InvalidParticipantNodeError
        self.target_component = TargetComponent().parse_yaml_node(y['participant'])
        return self