func_code: def swap_unique_keys_values(d):
      pairs = list(d.items())
      new_d = {}
      for key, value in pairs:
          if not value in new_d:
              new_d[value] = key
          else:
              del new_d[value]
      return new_d