def writeToIO(self, obj_type, io):
            items = sorted(self[obj_type].items())
            io.writelnWord('%  '+ "%s objects"  %  obj_type.__name__)
            io.writeInt(len(items))
            io.writeNewLine()
            io.writeNewLine()
            for i, (name, obj) in enumerate(items):
                    io.writelnInt(i)
                    obj.writeToFile(io)
                    io.writeNewLine()
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/Workspace.writeToIO/original