// the environment is exported into the `env` namespace // let's run the environment in a loop, taking random actions // use the `tf` namespace to create agents if (!env.done) { let action = env.action_space.sample(); let [obs, rew, done, info] = env.step(action); } else { env.reset(); }