def __setitem__(self, key, value):
        if self.base is None:
            raise KeyError("Mapping has not been initialized")
        section, subkey = self.__descend_sections(key, create=True)
        # At the last section, set the value
        section[subkey] = value
Set an item
dataset/ETHPy150Open duerrp/pyexperiment/pyexperiment/utils/HierarchicalMapping.py/HierarchicalMapping.__setitem__