I need perform search in some dictionary structure :
dic_global = {
'key_lev1_1': {
'key_lev2_a': 'some_value_1',
'key_lev2_b': 'some_value_2'
},
'key_lev1_2': 'some_value_111'
}
and I need to perform recursive search for item in the whole structure so that function would return the key where the item was. so if fun found 'key_lev2_a' it returns 'key_lev1_1' - the name of enclosure the key where the dict with 'key_lev2_a' is.
is it possible ?