code: def set_cache_location(cache_dir: str):
      """
      Sets the path to create the "py-yfinance" cache folder in.
      Useful if the default folder returned by "appdir.user_cache_dir()" is not writable.
      Must be called before cache is used (that is, before fetching tickers).
      :param cache_dir: Path to use for caches
      :return: None
      """
      _TzDBManager.set_location(cache_dir)
      _CookieDBManager.set_location(cache_dir)
  
imports: import peewee
  from threading import Lock
  import os
  import appdirs
  import atexit
  import datetime
  import pickle
  from .utils import get_yf_logger
label_desc: Use image node_id 3 for calling a global function with example usage: set_cache_location(cache_dir) without return types