code: def test_build():
      builder = AgentBuilder(
          config_file_or_env=OAI_CONFIG_LIST,
          config_file_location=KEY_LOC,
          builder_model="gpt-4",
          agent_model="gpt-4",
      )
      building_task = (
          "Find a paper on arxiv by programming, and analyze its application in some domain. "
          "For example, find a recent paper about gpt-4 on arxiv "
          "and find its potential applications in software."
      )
      agent_list, agent_config = builder.build(
          building_task=building_task,
          default_llm_config={"temperature": 0},
          code_execution_config={
              "last_n_messages": 2,
              "work_dir": f"{here}/test_agent_scripts",
              "timeout": 60,
              "use_docker": "python:3",
          },
      )
      _config_check(agent_config)
  
      # check number of agents
      assert len(agent_config["agent_configs"]) <= builder.max_agents
  
      # check system message
      for cfg in agent_config["agent_configs"]:
          assert "TERMINATE" in cfg["system_message"]
  
file_path: autogen/test/agentchat/contrib/test_agent_builder.py
imports: import pytest
  import os
  import json
  import sys
  from autogen.agentchat.contrib.agent_builder import AgentBuilder
  from conftest import skip_openai
  from test_assistant_agent import OAI_CONFIG_LIST, KEY_LOC
label_desc: Use image node_id 2 for calling a global function with example usage: test_build() without return types