I am working on DQN for robot environment. I want to compute steps per episode using DQN and plot a graph of step per episode, But there is an error, TypeError: object of ty