def _valid_value(self, value):
if not self.valid_values:<EOL><INDENT>return True<EOL><DEDENT>valid_values = (self.valid_values if isinstance(self.valid_values, list)<EOL>else list(self.valid_values))<EOL>return value in valid_values<EOL>
bool: Whether the given value is valid.