def _validate(self, value):
_LOGGER.info('<STR_LIT>', type(value))<EOL>if value is not None and not isinstance(value, client.Credentials):<EOL><INDENT>raise TypeError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(self._name, value))<EOL><DEDENT>
Validates a value as a proper credentials object.

        Args:
            value: A value to be set on the property.

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