<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _invoke_callbacks(self, *args, **kwargs):
 """Invoke all done callbacks."""

        for callback in self._done_callbacks:
            _helpers.safe_invoke_callback(callback, *args, **kwargs)