def METHOD_NAME(app_config, agent_config):
    BaseWorld.clear_config()
    BaseWorld.apply_config('main', app_config)
    BaseWorld.apply_config('agents', agent_config)
    yield BaseWorld
    BaseWorld.clear_config()