def __getitem__(self, item):
        if not issequence(item):
            item = [item]
        if len(item) == 1:
            return self._objects[item[0]]
        elif len(item) == 2:
            return self._objects[item[0]][item[1]]
        else:
            raise IndexError('Invalid index: %r' % item)
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/Workspace.__getitem__/original