Flattens a deeply nested dictionary into a flattened dictionary. For example {‘foo’: {‘bar’: ‘baz’}} would be flattened to {‘foo.bar’: ‘baz’}.
nested (dict) – dictionary to flatten
dict