def registered(self, handler_type, handler_label):
        """
        Check if a handler is registered.

        :param handler_type: The type of handler (interface label)
        :param handler_label: The label of the handler
        :returns: True if the handler is registered, False otherwise
        :rtype: ``boolean``

        Usage:

        .. code-block:: python

            app.handler.registered('log', 'colorlog')

        """
        if handler_type in self.__handlers__ and \
           handler_label in self.__handlers__[handler_type]:
            return True

        return False
dataset/ETHPy150Open datafolklabs/cement/cement/core/handler.py/HandlerManager.registered/original