class_docstr: Thread-safe cache of Python script bytecode.
class_docstr_tok: ["Thread-safe","cache","of","Python","script","bytecode","."]
code: def __init__(self):
      # Mapping of script_path: bytecode
      self._cache: dict[str, Any] = {}
      self._lock = threading.Lock()
  
file_path: streamlit/lib/streamlit/runtime/scriptrunner/script_cache.py
imports: from __future__ import annotations
  import os.path
  import threading
  from typing import Any
  from streamlit import config
  from streamlit.runtime.scriptrunner import magic
  from streamlit.source_util import open_python_file
label_desc: Use image node_id 1 to create a new ScriptCache object  with example: obj = ScriptCache()