code: def validate_relationship(self):
          
          if self.relationship not in self._relationship_valid_values:
              raise ValueError("relationship should be one of: {valid}".format(
                  valid=", ".join(self._relationship_valid_values)
              ))
docs: Ensure relationship is of a certain type.