def validate_participation(self):
if self.participation not in self._participation_valid_values:<EOL><INDENT>raise ValueError("<STR_LIT>".format(<EOL>valid="<STR_LIT:U+002CU+0020>".join(self._participation_valid_values)<EOL>))<EOL><DEDENT>
Ensure participation is of a certain type.