code: def action_attr(attr_name):
      
  
      def action_attr(value, context, **_params):
          setattr(context["action"], attr_name, value)
          return _attr()
  
      return action_attr
docs: 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