Horizon config has been removed, how can I accomplish the reset of env

my code have warning which is like the image.


I have tried to set the “horizon”, but it seemed has been removed.

I have tried to set max_episode_steps, but it failed
捕获