code: def convert_to_nested_dict(dotted_dict):
      
      nested_dict = {}
      for k, v in iterate_flattened(dotted_dict):
          set_by_dotted_path(nested_dict, k, v)
      return nested_dict
docs: Convert a dict with dotted path keys to corresponding nested dict.