code: def _set_cache_item(hashed_grammar, path, module_cache_item):
      if (
          sum(len(v) for v in parser_cache.values())
          >= _CACHED_SIZE_TRIGGER
      ):
          # Garbage collection of old cache files.
          # We are basically throwing everything away that hasn't been accessed
          # in 10 minutes.
          cutoff_time = time.time() - _CACHED_FILE_MINIMUM_SURVIVAL
          for key, path_to_item_map in parser_cache.items():
              parser_cache[key] = {
                  path: node_item
                  for path, node_item in path_to_item_map.items()
                  if node_item.last_used > cutoff_time
              }
  
      parser_cache.setdefault(hashed_grammar, {})[
          path
      ] = module_cache_item
  
imports: import time
  import os
  import sys
  import hashlib
  import gc
  import shutil
  import platform
  import errno
  import logging
  import warnings
  from parso._compatibility import FileNotFoundError, PermissionError, scandir
  from parso.file_io import FileIO
label_desc: Use image node_id 5 for calling a global function with example usage: _set_cache_item(hashed_grammar, path, module_cache_item) without return types