def _validate(self, value):
if not isinstance(value, self._enum_type):<EOL><INDENT>raise TypeError('<STR_LIT>' %<EOL>(self._enum_type.__name__, value))<EOL><DEDENT>
Validate an Enum value.

        Raises:
          TypeError if the value is not an instance of self._enum_type.