<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _apply_callback(cls, callback, result):
 """ Synchronously execute callback """

        if not callback.immutable:
            callback.args = (result.id, ) + callback.args
        callback.apply()