<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_data_out(self, data, dtype):
 """Append the data of the given dtype_out to the data_out attr."""

        try:
            self.data_out.update({dtype: data})
        except AttributeError:
            self.data_out = {dtype: data}