code: def stack_uses_spot(
      stack_name: str, boto3_session: boto3.session.Session
  ) -> bool:
      params = get_params(stack_name, boto3_session)
      if constants.cloudformation.SPOT_ENABLED not in params.keys():
          return False
  
      spot_enabled_str_val = params[
          constants.cloudformation.SPOT_ENABLED
      ]
      if spot_enabled_str_val.lower() == "true":
          return True
      else:
          return False
  
imports: import sys
  import threading
  import time
  from typing import Any, Callable, Dict, List, Optional, Tuple
  import boto3
  import tqdm
  from botocore.exceptions import ClientError, WaiterError
  from determined.deploy.aws import constants
label_desc: Use image node_id 13 for calling a global function with example usage: stack_uses_spot(stack_name, boto3_session) and returns: False, True, False