func_code: def swap_unique_keys_values(d):
      for w in list(d.items()):
          if list(d.items()).count(w) > 1:
              for s in list(d.items()):
                  if d[s] == d[w]:
                      d.popitem(d[s])
              d.popitem(d[w])
      d = {v: k for k, v in list(d.items())}
      return d