def registered(handler_type, handler_label):
    """
    DEPRECATION WARNING: This function is deprecated as of Cement 2.7.x and
    will be removed in future versions of Cement.
    Use ``CementApp.handler.registered()`` instead.

    ---

    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``

    """
    # only log debug for now as this won't be removed until Cement 3.x and
    # we don't have access to CementApp.Meta.ignore_deprecation_warnings here
    LOG.debug(
        'Cement Deprecation Warning: `handler.registered()` has been '
        'deprecated, and will be removed in future versions of Cement.  You '
        'should now use `CementApp.handler.registered()` instead.'
    )

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

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