code: def test_caching_v2():  # test in memory cache
      try:
          litellm.cache = Cache(
              type="redis",
              host="os.environ/REDIS_HOST_2",
              port="os.environ/REDIS_PORT_2",
              password="os.environ/REDIS_PASSWORD_2",
              ssl="os.environ/REDIS_SSL_2",
          )
          response1 = completion(
              model="gpt-3.5-turbo", messages=messages, caching=True
          )
          response2 = completion(
              model="gpt-3.5-turbo", messages=messages, caching=True
          )
          print(f"response1: {response1}")
          print(f"response2: {response2}")
          litellm.cache = None  # disable cache
          if (
              response2["choices"][0]["message"]["content"]
              != response1["choices"][0]["message"]["content"]
          ):
              print(f"response1: {response1}")
              print(f"response2: {response2}")
              raise Exception()
      except Exception as e:
          print(f"error occurred: {traceback.format_exc()}")
          pytest.fail(f"Error occurred: {e}")
  
file_path: litellm/litellm/tests/test_caching_ssl.py
imports: import sys, os
  import time
  import traceback
  from dotenv import load_dotenv
  import os
  import pytest
  import litellm
  from litellm import embedding, completion, Router
  from litellm.caching import Cache
label_desc: Use image node_id 1 for calling a global function with example usage: test_caching_v2() without return types