code: def test_chat_tools_stream() -> None:
      config_list = config_list_from_json(
          env_or_file=OAI_CONFIG_LIST,
          file_location=KEY_LOC,
          filter_dict={"model": ["gpt-3.5-turbo", "gpt-35-turbo"]},
      )
      tools = [
          {
              "type": "function",
              "function": {
                  "name": "get_current_weather",
                  "description": "Get the current weather",
                  "parameters": {
                      "type": "object",
                      "properties": {
                          "location": {
                              "type": "string",
                              "description": "The city and state, e.g. San Francisco, CA",
                          },
                      },
                      "required": ["location"],
                  },
              },
          },
      ]
      print(f"{config_list=}")
      client = OpenAIWrapper(config_list=config_list)
      response = client.create(
          # the intention is to trigger two tool invocations as a response to a single message
          messages=[
              {
                  "role": "user",
                  "content": "What's the weather like today in San Francisco and New York?",
              }
          ],
          tools=tools,
          stream=True,
      )
      print(f"{response=}")
      print(f"{type(response)=}")
      print(f"{client.extract_text_or_completion_object(response)=}")
      # check response
      choices = response.choices
      assert isinstance(choices, list)
      assert len(choices) == 1
      choice = choices[0]
      assert choice.finish_reason == "tool_calls"
      message = choice.message
      tool_calls = message.tool_calls
      assert isinstance(tool_calls, list)
      assert len(tool_calls) == 2
      arguments = [
          tool_call.function.arguments for tool_call in tool_calls
      ]
      locations = [
          json.loads(argument)["location"] for argument in arguments
      ]
      print(f"{locations=}")
      assert any(
          ["San Francisco" in location for location in locations]
      )
      assert any(["New York" in location for location in locations])
  
file_path: autogen/test/oai/test_client_stream.py
imports: import json
  from typing import Any, Dict, List, Literal, Optional, Union
  from unittest.mock import MagicMock
  import pytest
  from autogen import OpenAIWrapper, config_list_from_json, config_list_openai_aoai
  import sys
  import os
  from conftest import skip_openai
label_desc: Use image node_id 7 for calling a global function with example usage: test_chat_tools_stream() without return types