code: def should_skip_pydantic_tests() -> bool:
      try:
          import pydantic
  
          return not pydantic.__version__.startswith("1.")
      except ImportError:
          return True
  
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 1 for calling a global function with example usage: should_skip_pydantic_tests() and returns: unknown, True