code: def is_cacheable_msg(msg: ForwardMsg) -> bool:
      """True if the given message qualifies for caching."""
      if msg.WhichOneof("type") in {"ref_hash", "initialize"}:
          # Some message types never get cached
          return False
      return msg.ByteSize() >= int(
          config.get_option("global.minCachedMessageSize")
      )
  
file_path: streamlit/lib/streamlit/runtime/runtime_util.py
imports: from typing import Any, Optional
  from streamlit import config
  from streamlit.errors import MarkdownFormattedException
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.runtime.forward_msg_cache import populate_hash_if_needed
label_desc: Use image node_id 1 for calling a global function with example usage: is_cacheable_msg(msg) and returns: unknown, False