https://lowcostwallchargeripod.blogspot.com/2022/06/how-to-switch-nesting-structure-of.html
How To Switch The Nesting Structure Of A Dictionary Of Dictionaries In Python