code: def uniq(container):
      try:
          return len(set(unbool(i) for i in container)) == len(container)
      except TypeError:
          try:
              sort = sorted(unbool(i) for i in container)
              sliced = itertools.islice(sort, 1, None)
              for i, j in zip(sort, sliced):
                  if i == j:
                      return False
          except (NotImplementedError, TypeError):
              seen = []
              for e in container:
                  e = unbool(e)
                  if e in seen:
                      return False
                  seen.append(e)
      return True