func_code: def swap_unique_keys_values(d):
      new_d = {}
      keys = list(set(d.keys()))
      values = list(set(d.values()))
      i = 0
      while i < len(keys):
          new_d[values[i]] = keys[i]
          i = i + 1
      return new_d