@query
    def __contains__(self, key):
        """Tests whether the given ``key`` exists.

        :param key: the key
        :returns: ``True`` if the ``key`` exists or ``False``
        :rtype: :class:`bool`

        .. note::

           It is directly mapped to Redis :redis:`HEXISTS` command.

        """
        try:
            encoded_key = self.key_type.encode(key)
        except __HOLE__:
            return False
        exists = self.session.client.hexists(self.key, encoded_key)
        return bool(exists)
dataset/ETHPy150Open dahlia/sider/sider/hash.py/Hash.__contains__