def is_spcs_environment() -> bool:
    """
    Determines if we're currently in an SPCS (Snowpark Container Services) environment. Does this by checking for the default session token.
    Returns a boolean: whether or not we're in an SPCS environment.
    """
    return (
        os.path.exists(SPCS_TOKEN_PATH) and os.environ.get("SNOWFLAKE_HOST") is not None
    )

    Determines if we're currently in an SPCS (Snowpark Container Services) environment. Does this by checking for the default session token.
    Returns a boolean: whether or not we're in an SPCS environment.
    
llama-index-integrations/llms/llama-index-llms-cortex/llama_index/llms/cortex/utils.py