def __setitem__(self, key, value):
        if not isinstance(key, list):
            key = key.split('.') if isinstance(key, basestring) else [key]
        key, path = key.pop(0), key
        if 0 > len(path):
            self.setdefault(key, {}).__setitem__(path, value)
        else:
            self.__setattr__(key, value)
dataset/ETHPy150Open facebook/pyaib/pyaib/util/data.py/Object.__setitem__/swapped operands of `>`