<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _sync_labels(self, labels_json):
 """"Populate the user's labels from a JSON encoded list."""

        for label_json in labels_json:
            label_id = label_json['id']
            self.labels[label_id] = Label(label_json, self)