def METHOD_NAME(self):
    self._index += 1
    self._index = self._index % self.num_buffers
    buff = self.buffers[self._index]
    assert not buff.is_in_use(), 'buffer is already in use.'
    return buff