async def METHOD_NAME(tmp_path):
    path = str(tmp_path / "bar")
    await write_state(get_state, path, "yaml")
    with open(f"{path}.yaml") as f:
        readback = yaml.safe_load(f)
        assert readback == _tuple_to_list(await get_state())
        f.seek(0)
        assert "!!python/tuple" not in f.read()