code: def _redis_kwargs_from_environment():
      mapping = _get_redis_env_kwarg_mapping()
  
      return_dict = {}
      for k, v in mapping.items():
          value = litellm.get_secret(
              k, default_value=None
          )  # check os.environ/key vault
          if value is not None:
              return_dict[v] = value
      return return_dict
  
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 3 for calling a global function with example usage: _redis_kwargs_from_environment() and returns: return_dict