func_code: def swap_unique_keys_values(d):
      A = False
      keys = []
      values = []
      unique = []
      swapped_unique_d = {}
      for key in d:
          keys.append(key)
          values.append(d[key])
      for item in keys:
          unique.append(True)
      i = 0
      while i < len(keys):
          p = i + 1
          while p < len(values):
              if values[i] == values[p]:
                  unique[i] = A
                  unique[p] = A
              p += 1
          i += 1
      j = 0
      while j < len(unique):
          if uniqueness[j]:
              swapped_unique_d[values[j]] = keys[j]
          j += 1
      return swapped_unique_d