<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def output_callback(self, out, process_status):
 """ Collect the final status and outputs. """

        self.final_status.append(process_status)
        self.final_output.append(out)