code: 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)
docs: Populate the user's labels from a JSON encoded list.