code: def create_snowpark_session() -> "Session":
      from snowflake.snowpark import Session
  
      credential = json.loads(SNOWFLAKE_CREDENTIAL_FILE.read_text())
      session = Session.builder.configs(credential).create()
      try:
          yield session
      finally:
          session.close()
  
file_path: streamlit/lib/tests/testutil.py
imports: import json
  from contextlib import contextmanager
  from typing import TYPE_CHECKING
  from streamlit import config
  from streamlit.runtime.memory_uploaded_file_manager import MemoryUploadedFileManager
  from streamlit.runtime.scriptrunner import ScriptRunContext
  from streamlit.runtime.state import SafeSessionState, SessionState
  from tests.constants import SNOWFLAKE_CREDENTIAL_FILE
  from streamlit.testing.v1.util import build_mock_config_get_option
  from streamlit.testing.v1.util import patch_config_options
label_desc: Use image node_id 5 for calling a global function with example usage: create_snowpark_session() without return types