<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def action_attr(attr_name):
 """ Creates a setter that will set the specified action attribute to the current value. @param attr_name: the name of an attribute belonging to the action. @type attr_name: str """


    def action_attr(value, context, **_params):
        setattr(context["action"], attr_name, value)
        return _attr()

    return action_attr