def __getitem__(self, item):
        if isinstance(item, (long, int)):
            if item in self._questions:
                return self._questions[item]
            else:
                return self.default
        else:
            raise TypeError('Bad index')
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/TreeBranch.__getitem__/original