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

    """Mark a function as an action.
    The given name will be taken as the action key in the body.
    This is also overloaded to allow extensions to provide
    non-extending definitions of create and delete operations.
    """
    def decorator(func):
        func.wsgi_action = name
        return func
    return decorator