def test(world, restore=False, show=True):
    agent_name = '_'.join((world.name, 'agent'))
    agent = Agent(world.num_sensors, world.num_actions, 
                  agent_name=agent_name, show=show)
    if restore:
        agent = agent.restore()
    actions = np.zeros((world.num_actions,1))
    # Repeat the loop through the duration of the existence of the world 
    while(world.is_alive()):
        sensors, reward = world.step(actions)
        world.visualize(agent)
        actions = agent.step(sensors, reward)
    return agent.report_performance()
Run BECCA with a world 
dataset/ETHPy150Open matt2000/becca/tester.py/test