code: def should_show_new_version_notice():
      """True if streamlit should show a 'new version!' notice to the user.
  
      We need to make a network call to PyPI to determine the latest streamlit
      version. Since we don't want to do this every time streamlit is run,
      we'll only perform the check ~5% of the time.
  
      If we do make the request to PyPI and there's any sort of error,
      we log it and return False.
  
      Returns
      -------
      bool
          True if we should tell the user that their streamlit is out of date.
  
      """
      if random.random() >= CHECK_PYPI_PROBABILITY:
          # We don't check PyPI every time this function is called.
          _LOGGER.debug("Skipping PyPI version check")
          return False
  
      try:
          installed_version = _get_installed_streamlit_version()
          latest_version = _get_latest_streamlit_version(timeout=1)
      except Exception as ex:
          # Log this as a debug. We don't care if the user sees it.
          _LOGGER.debug("Failed PyPI version check.", exc_info=ex)
          return False
  
      return latest_version > installed_version
  
file_path: streamlit/lib/streamlit/version.py
imports: import random
  import packaging.version
  from importlib_metadata import version
  from typing_extensions import Final
  import streamlit.logger
label_desc: Use image node_id 4 for calling a global function with example usage: should_show_new_version_notice() and returns: unknown, False, False