human
Write me a Python program to get an inverse dict in Python.
assistant
Here is a Python program to get an inverse dict in Python

import collections

def get_inverse_dict(d):
    """
    Return the inverse of a dictionary.
    """
    return {v: k for k, v in list(d.items())}

# Enter the dictionary
d = collections.OrderedDict()

# Enter the key and value
d['key1'] = 'value1'
d['key2'] = 'value2'

# Calling the function
print((get_inverse_dict(d)))

#Example Output
# {'value1': 'key1', 'value2': 'key2'}

#Remember to inspect code for bugs.