Inverts a dictionary; in other words will return an array of objects where the value key is a
"leaf" value in the dictionary and the associated "path" key is an array of strings that are
the keys that lead to that value in the nested dictionary.
constdic = { a :1, b : { c :2 } , d : { e : { f:3 } , y1 : { x1 :20 , x2 :30, x3 : { b :40 } } } , }
Inverts a dictionary; in other words will return an array of objects where the value key is a "leaf" value in the dictionary and the associated "path" key is an array of strings that are the keys that lead to that value in the nested dictionary.