def METHOD_NAME():
    with pytest.raises(
        ValueError,
        match=r"PlayableGame wrapper works only with rgb_array and rgb_array_list render modes",
    ):
        play(gym.make("CartPole-v1"), keys_to_action={})