def __init__(self,
      authenticated_url_fetcher, http_retry_count=None, cache_directory=None):
    self._direct_url_fetcher = base.url_fetcher.DirectUrlFetcher()
    self._authenticated_url_fetcher = authenticated_url_fetcher
    if http_retry_count > 1:
      self._direct_url_fetcher = base.url_fetcher.RetryingUrlFetcher(
          http_retry_count, self._direct_url_fetcher)
      self._authenticated_url_fetcher = base.url_fetcher.RetryingUrlFetcher(
          http_retry_count, self._authenticated_url_fetcher)

    self._cache = \
      base.cache.DirectoryCache(cache_directory) if cache_directory else None
dataset/ETHPy150Open mihaip/readerisdead/base/api.py/Api.__init__/original