How can I split a string and form a multi-level nested dictionary?,"from functools import reduce