code: def _get_hashed_path(hashed_grammar, path, cache_path=None):
      directory = _get_cache_directory_path(cache_path=cache_path)
  
      file_hash = hashlib.sha256(path.encode("utf-8")).hexdigest()
      return os.path.join(
          directory, "%s-%s.pkl" % (hashed_grammar, file_hash)
      )
  
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 11 for calling a global function with example usage: _get_hashed_path(hashed_grammar, path, cache_path) and returns: os