Expands a flattened dict into a nested dict, e.g. {‘foo.bar’: ‘baz’} to {‘foo’: {‘bar’: ‘baz’}}.
flattened (dict) – dictionary with flattened keys to expand
dict
separator (str) – separator between dict keys in flattened_path
str