I have a dictionary that contains key value pairs where the values are also dictionaries:
{ 
    'item1':{'name':'filename', 'size':1024},
    'item2':{'name':'filename', 'size':1024},
    'item3':{'name':'diff_filename', 'size':1024},
    'item4':{'name':'diff_filename', 'size':1024}
}
I want to remove items in the dictionary that have duplicate 'filename' fields in their values giving me the result:
{ 
    'item1':{'name':'filename', 'size':1024},
    'item3':{'name':'diff_filename', 'size':1024}
}
 
    