code: def clear_time_caches(delete_all=False):
      """Jedi caches many things, that should be completed after each completion
      finishes.
  
      :param delete_all: Deletes also the cache that is normally not deleted,
          like parser cache, which is important for faster parsing.
      """
      global _time_caches
  
      if delete_all:
          for cache in _time_caches.values():
              cache.clear()
          parser_cache.clear()
      else:
          # normally just kill the expired entries, not all
          for tc in _time_caches.values():
              # check time_cache for expired entries
              for key, (t, value) in list(tc.items()):
                  if t < time.time():
                      # delete expired entries
                      del tc[key]
  
file_path: catboost/contrib/python/jedi/py2/jedi/cache.py
imports: import time
  from functools import wraps
  from jedi import settings
  from parso.cache import parser_cache
label_desc: Use image node_id 2 for calling a global function with example usage: clear_time_caches(delete_all) without return types