def METHOD_NAME(using_opengl_renderer):
    """Test that tempconfig correctly restores after setting dry_run."""
    assert config["write_to_movie"]
    assert not config["save_last_frame"]
    with tempconfig({"dry_run": True}):
        assert not config["write_to_movie"]
        assert not config["save_last_frame"]
    assert config["write_to_movie"]
    assert not config["save_last_frame"]