code: def get_redis_client(**env_overrides):
      ### check if "os.environ/<key-name>" passed in
      for k, v in env_overrides.items():
          if isinstance(v, str) and v.startswith("os.environ/"):
              v = v.replace("os.environ/", "")
              value = litellm.get_secret(v)
              env_overrides[k] = value
  
      redis_kwargs = {
          **_redis_kwargs_from_environment(),
          **env_overrides,
      }
  
      if "url" in redis_kwargs and redis_kwargs["url"] is not None:
          redis_kwargs.pop("host", None)
          redis_kwargs.pop("port", None)
          redis_kwargs.pop("db", None)
          redis_kwargs.pop("password", None)
  
          return redis.Redis.from_url(**redis_kwargs)
      elif "host" not in redis_kwargs or redis_kwargs["host"] is None:
          raise ValueError(
              "Either 'host' or 'url' must be specified for redis."
          )
      litellm.print_verbose(f"redis_kwargs: {redis_kwargs}")
      return redis.Redis(**redis_kwargs)
  
file_path: litellm/litellm/_redis.py
imports: import os
  import inspect
  import redis, litellm
  from typing import List, Optional
label_desc: Use image node_id 5 for calling a global function with example usage: get_redis_client() and returns: redis, redis