code: def test_retry_fails_fast_for_other_errors(self):
      mock_cursor = MagicMock()
      mock_cursor.fetch_pandas_all = MagicMock(
          side_effect=Exception("oh noes :(")
      )
  
      conn = SnowflakeConnection("my_snowflake_connection")
      conn._instance.cursor.return_value = mock_cursor
  
      with pytest.raises(Exception):
          conn.query("SELECT 1;")
  
      # conn._connect should have just been called once when first creating the
      # connection.
      assert conn._connect.call_count == 1
  
imports: import threading
  import unittest
  from unittest.mock import MagicMock, PropertyMock, patch
  import pytest
  import streamlit
  from streamlit.connections import SnowflakeConnection
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.scriptrunner import add_script_run_ctx
  from streamlit.runtime.secrets import AttrDict
  from tests.testutil import create_mock_script_run_ctx
label_desc: Use image node_id 13 for calling the SnowflakeConnectionTest obj's underlying member method code with example usage: obj.test_retry_fails_fast_for_other_errors() without return types