code: def test_cache_context_managers():
      litellm.set_verbose = True
      litellm.cache = Cache(type="redis")
  
      # cache is on, disable it
      litellm.disable_cache()
      assert litellm.cache == None
      assert "cache" not in litellm.success_callback
      assert "cache" not in litellm._async_success_callback
  
      # disable a cache that is off
      litellm.disable_cache()
      assert litellm.cache == None
      assert "cache" not in litellm.success_callback
      assert "cache" not in litellm._async_success_callback
  
      litellm.enable_cache(
          type="redis",
          host=os.environ["REDIS_HOST"],
          port=os.environ["REDIS_PORT"],
      )
  
      assert litellm.cache != None
      assert litellm.cache.type == "redis"
  
      print("VARS of litellm.cache", vars(litellm.cache))
  
imports: import sys, os, uuid
  import time
  import traceback
  from dotenv import load_dotenv
  import os
  import pytest
  import litellm
  from litellm import embedding, completion
  from litellm.caching import Cache
  import random
  import hashlib
  import random
  import string
label_desc: Use image node_id 18 for calling a global function with example usage: test_cache_context_managers() without return types