<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_to_results(self, data, label, results):
 """ Adds the label to the results, as needed, then appends the data to the running results tab """

        for datum in data:
            if label is not None:
                datum.update({'type': label})

            results.append(datum)

        return results