code: def test_completion_anyscale_with_functions():
      function1 = [
          {
              "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"],
              },
          }
      ]
      try:
          messages = [
              {
                  "role": "user",
                  "content": "What is the weather like in Boston?",
              }
          ]
          response = completion(
              model="anyscale/mistralai/Mistral-7B-Instruct-v0.1",
              messages=messages,
              functions=function1,
          )
          # Add any assertions here to check the response
          print(response)
  
          cost = litellm.completion_cost(completion_response=response)
          print("cost to make anyscale completion=", cost)
          assert cost > 0.0
      except Exception as e:
          pytest.fail(f"Error occurred: {e}")
  
imports: import sys, os
  import traceback
  from dotenv import load_dotenv
  import os, io
  import pytest
  import litellm
  from litellm import embedding, completion, completion_cost, Timeout
  from litellm import RateLimitError
  import openai
label_desc: Use image node_id 25 for calling a global function with example usage: test_completion_anyscale_with_functions() without return types