def METHOD_NAME(build_flask_client, agent_plugin_service):
    container = StubDIContainer()
    container.register_instance(IAgentPluginService, agent_plugin_service)
    with build_flask_client(container) as METHOD_NAME:
        yield METHOD_NAME