def __setitem__(self, key, value):
        if key in self.oct_meta:
            value = '0%o' % value
        elif key in self.int_meta:
            value = '%d' % value
        else:
            raise NotImplementedError

        meta_data = self._read_meta()
        meta_data[key] = value
        self._write_meta(meta_data)
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/storage.py/StorageInode.__setitem__/original