code: def pytest_configure(config: pytest.Config):
      config.addinivalue_line(
          "markers",
          "require_snowflake(name): mark test to run only on "
          "when --require-snowflake option is passed to pytest",
      )
  
      is_require_snowflake = config.getoption(
          "--require-snowflake", default=False
      )
      if is_require_snowflake:
          if sys.version_info[0:2] != (3, 8):
              raise pytest.UsageError(
                  "Python 3.8 is required to run Snowflake tests"
              )
          try:
              import snowflake.snowpark
          except ImportError:
              raise pytest.UsageError(
                  "The snowflake-snowpark-python package is not installed."
              )
          if not SNOWFLAKE_CREDENTIAL_FILE.exists():
              raise pytest.UsageError(
                  f"Missing credential file: {SNOWFLAKE_CREDENTIAL_FILE}"
              )
  
file_path: streamlit/lib/tests/conftest.py
imports: import os
  import sys
  from unittest.mock import mock_open, patch
  import pytest
  from tests.constants import SNOWFLAKE_CREDENTIAL_FILE
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_configure(config) without return types