def any_key_collisions(dictionary):
    """ensures no keys contain any other key element, across all keys"""
    members = [i for i in dictionary.keys()]
    dups = []
    for idx, _ in enumerate(members):
        candidate = members[idx * -1]
        if candidate in members[: idx * -1]:
            dups.append(candidate)
    return ''.join(set(dups))
ensures no keys contain any other key element, across all keys
recipes/Python/578086_Characters_String_Replace/recipe-578086.py