class_docstr: A utility for storing messages generated by `st` commands called inside
  a cached function.
  
  Data is stored in a thread-local object, so it's safe to use an instance
  of this class across multiple threads.
class_docstr_tok: ["A","utility","for","storing","messages","generated","by","`","st","`","commands","called","inside","a","cached","function",".","Data","is","stored","in","a","thread-local","object",",","so","it","'s","safe","to","use","an","instance","of","this","class","across","multiple","threads","."]
code: def suppress_cached_st_function_warning(self) -> Iterator[None]:
      self._suppress_st_function_warning += 1
      try:
          yield
      finally:
          self._suppress_st_function_warning -= 1
          assert self._suppress_st_function_warning >= 0
  
imports: from __future__ import annotations
  import contextlib
  import hashlib
  import threading
  import types
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, Any, Iterator, Union
  from google.protobuf.message import Message
  from typing_extensions import Protocol, runtime_checkable
  import streamlit
  from streamlit import runtime, util
  from streamlit.elements import NONWIDGET_ELEMENTS, WIDGETS
  from streamlit.logger import get_logger
  from streamlit.proto.Block_pb2 import Block
  from streamlit.runtime.caching.cache_errors import CachedStFunctionWarning, CacheReplayClosureError
  from streamlit.runtime.caching.cache_type import CacheType
  from streamlit.runtime.caching.hashing import update_hash
  from streamlit.runtime.scriptrunner.script_run_context import ScriptRunContext, get_script_run_ctx
  from streamlit.runtime.state.common import WidgetMetadata
  from streamlit.util import HASHLIB_KWARGS
label_desc: Use image node_id 9 for calling the CachedMessageReplayContext obj's underlying member method code with example usage: obj.suppress_cached_st_function_warning() without return types