code: def test_should_show_new_version_notice_error(self):
      with mock.patch(
          "streamlit.version._get_latest_streamlit_version"
      ) as get_latest, mock.patch(
          "streamlit.version._get_installed_streamlit_version"
      ) as get_installed:
          version.CHECK_PYPI_PROBABILITY = 1
          get_installed.side_effect = [PkgVersion("1.2.3")]
          get_latest.side_effect = RuntimeError("apocalypse!")
  
          self.assertFalse(should_show_new_version_notice())
          get_installed.assert_called_once()
          get_latest.assert_called_once()
  
file_path: streamlit/lib/tests/streamlit/version_test.py
imports: import unittest
  from unittest import mock
  import requests_mock
  from packaging.version import Version
  from streamlit import version
  from streamlit.version import PYPI_STREAMLIT_URL, _get_installed_streamlit_version, _get_latest_streamlit_version, should_show_new_version_notice
label_desc: Use image node_id 7 for calling the VersionTest obj's underlying member method code with example usage: obj.test_should_show_new_version_notice_error() without return types