def compact_print(d, indent=''):
    items = list(d.items())
key, value = items[0]
if not indent:
    print('{')
if isinstance(value, dict):
    pass
Print the structure of large nested dictionaries in a compact way without printing all elements