Using a dictionary, write a Python statement to remove all duplicate keys in a given dictionary
my_dict = {
    "apple": 5,
    "pear": 10,
    "apple": 8
}
# use set to remove duplicate keys
my_dict = dict(set(my_dict.items()))