def cartpole_random(): agent = Random() driver = Driver({ 'epochs': 1000, 'env': gym.make('CartPole-v1'), 'agent': agent, }) driver.run_cartpole_random()