def to_dict(self):
        d = {}
        for batch in self:
            d[batch.table.name] = batch.to_dict()
        return d
Convert a BatchList object into format required for Layer1.
dataset/ETHPy150Open darcyliu/storyboard/boto/dynamodb/batch.py/BatchList.to_dict