def METHOD_NAME(results, dotted, path=None):
    for name, value in results.items():
        res_path = list() if path is None else list(path)
        res_path.append(name)
        if isinstance(value, dict):
            METHOD_NAME(value, dotted, res_path)
        else:
            dotted['.'.join(res_path)] = value