def get_or_set(self, key, value):
        """Either gets the value associated with key or set it
        This can be useful as an easy way of
        """
        try:
            return self[key]
        except __HOLE__:
            self[key] = value
            return value
dataset/ETHPy150Open duerrp/pyexperiment/pyexperiment/utils/HierarchicalMapping.py/HierarchicalMapping.get_or_set