import itertools


def get_nonredun_dict_key_pairs(in_dict):
    """Take a dict and return a list of all unique two-key combinations of keys
    of the dict.
    """
    # Don't modify the dict if there is only one key.
    if len(in_dict.keys()) == 1:
        return in_dict

    # Copy the input dict.
    in_dict2 = in_dict.copy()

    # Get a list of lists of all unique combinations of keys in the input dict.
    two_key_combos1 = list(itertools.permutations(in_dict2.keys(), 2))
    two_key_combos2 = [sorted(list(x)) for x in two_key_combos1]
    two_key_combos3 = []
    for elem in two_key_combos2:
        if elem not in two_key_combos3:
            two_key_combos3.append(elem)

    # Return list of uniqe combos.
    return two_key_combos3