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