def METHOD_NAME(text_and_events):
    text, events = text_and_events
    with pytest.raises(RuntimeError, match="nested calls"):
        with change_batch(text):
            with change_batch(text):
                pass