code: def update_labels(repo):
      
      updated = set()
      for label in repo.get_labels():
          edit = find_label(label.name, label.color, label.description)
          if edit is not None:
              print('    Updating {}: #{} "{}"'.format(edit.new, edit.color, edit.description))
              label.edit(edit.new, edit.color, edit.description)
              updated.add(edit.old)
              updated.add(edit.new)
          else:
              if DELETE_UNSPECIFIED:
                  print('    Deleting {}: #{} "{}"'.format(label.name, label.color, label.description))
                  label.delete()
              else:
                  print('    Skipping {}: #{} "{}"'.format(label.name, label.color, label.description))
              updated.add(label.name)
      for name, values in label_list.items():
          color, description = values
          if isinstance(name, tuple):
              new_name = name[1]
          else:
              new_name = name
          if new_name not in updated:
              print('    Creating {}: #{} "{}"'.format(new_name, color, description))
              repo.create_label(new_name, color, description)
docs: Update labels.