human
Complete this python program:
def intent(id):
assistant
#Here is the Python code you requested.

    """Registers this method as an intent with given ID
    """
    def decorator(fx):
        fx._intent = id
        return fx
    return decorator