def commit(self, retries=None):
        self.commands += 'COMMIT' + ' RETRY {}'.format(retries) if retries else ''

        g = self.graph
        g.client.batch(self.commands)
        self.clear()
Check the zero edge case.
dataset/ETHPy150Open mogui/pyorient/pyorient/ogm/batch.py/Batch.commit--crossover with--dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/test/test_contestgen.py/BallotGeneratorTest.test_make_choices__undervote__zero