class_docstr: Have one place to retrieve data from Yahoo API in order to ease caching and speed up operations.
  Singleton means one session one cookie shared by all threads.
class_docstr_tok: ["Have","one","place","to","retrieve","data","from","Yahoo","API","in","order","to","ease","caching","and","speed","up","operations",".","Singleton","means","one","session","one","cookie","shared","by","all","threads","."]
code: def _get_proxy(self, proxy):
      # setup proxy in requests format
      if proxy is not None:
          if isinstance(proxy, (dict, frozendict)) and "https" in proxy:
              proxy = proxy["https"]
          proxy = {"https": proxy}
      return proxy
  
imports: import functools
  from functools import lru_cache
  import requests
  from bs4 import BeautifulSoup
  import datetime
  from frozendict import frozendict
  from .None import utils, cache
  import threading
label_desc: Use image node_id 16 for calling the YfData obj's underlying member method code with example usage: obj._get_proxy(proxy) and returns: proxy