<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_by_dotted_path(d, path, value):
 """ Set an entry in a nested dict using a dotted path. Will create dictionaries as needed. Examples -------- {'foo': {'bar': 10}} {'foo': {'bar': 10, 'd': {'baz': 3}}} """

    split_path = path.split('.')
    current_option = d
    for p in split_path[:-1]:
        if p not in current_option:
            current_option[p] = dict()
        current_option = current_option[p]
    current_option[split_path[-1]] = value