def METHOD_NAME(function):
    """
    Register a callback function to be called on recognition success.
    The :class:`CallbackRecognitionObserver` object returned from this
    function can be used to unregister the callback function.
    :param function: callback function
    :type function: callable
    :returns: recognition observer
    :rtype: CallbackRecognitionObserver
    """
    return CallbackRecognitionObserver("on_recognition", function)