code: def begin(self):
      
      if self._cur_batch:
        raise ValueError('Previous batch is not committed.')
      self._cur_batch = self._client.batch()
      self._cur_batch.begin()
      self._num_mutations = 0
docs: Begins a batch.