code: def unnestedDict(exDict):
      """Converts a dict-of-dicts to a singly nested dict for non-recursive parsing"""
      out = {}
      for kk, vv in exDict.items():
          if isinstance(vv, dict):
              out.update(unnestedDict(vv))
          else:
              out[kk] = vv
      return out
  
imports: import keyword
  import os
  import pkgutil
  import re
  import subprocess
  import sys
  from argparse import Namespace
  from collections import OrderedDict
  from functools import lru_cache
  import pyqtgraph
  from pyqtgraph.Qt import QT_LIB, QtCore, QtGui, QtWidgets
  import exampleLoaderTemplate_generic
  import utils
label_desc: Use image node_id 2 for calling a global function with example usage: unnestedDict(exDict) and returns: out