def as_dict(config):
    settings = defaultdict(lambda: {})
    for section in config.sections():
        for key, val in config.items(section):
            settings[section][key] = val
    return settings
Resources are released on cleanup.
dataset/ETHPy150Open GaretJax/lancet/lancet/settings.py/as_dict--crossover with--dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/ResourcesTest.test_cleanup