def to_dict(self):
        return {key: val.to_dict() if isinstance(val, NestedDict) else val
                for key, val in self.items()}
Converts a NestedDict instance into a real dictionary.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/utils.py/NestedDict.to_dict