Begins a batch.

def begin(self):
    """Begins a batch."""
    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