def readFromIO(self, io):
        nobj = io.readInt()
        for i in range(nobj):
            ri = io.readInt()
            if i != ri:
                raise ValueError('Invalid object index, read %d, expected %d' % (ri, i))
            obj = self.obj_type.readFromFile(io)
            self[obj.name]=obj
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/NamedObjectCollection.readFromIO/original