code: def test_completion_function_call_openai():
      try:
          messages = [
              {
                  "role": "user",
                  "content": "What is the weather like in Boston?",
              }
          ]
          response = completion(
              model="gpt-3.5-turbo",
              messages=messages,
              functions=[
                  {
                      "name": "get_current_weather",
                      "description": "Get the current weather in a given location",
                      "parameters": {
                          "type": "object",
                          "properties": {
                              "location": {
                                  "type": "string",
                                  "description": "The city and state, e.g. San Francisco, CA",
                              },
                              "unit": {
                                  "type": "string",
                                  "enum": ["celsius", "fahrenheit"],
                              },
                          },
                          "required": ["location"],
                      },
                  }
              ],
          )
          print(f"response: {response}")
      except:
          pass
  
file_path: litellm/litellm/tests/test_bad_params.py
imports: import sys, os
  import traceback
  import pytest
  import litellm
  from litellm import embedding, completion
  from litellm.utils import Message
label_desc: Use image node_id 5 for calling a global function with example usage: test_completion_function_call_openai() without return types