code: def delete_stack(
      stack_name: str, boto3_session: boto3.session.Session
  ) -> None:
      cfn = boto3_session.client("cloudformation")
      delete_waiter = cfn.get_waiter("stack_delete_complete")
  
      if stack_exists(stack_name, boto3_session):
          print(
              f"True - Deleting stack {stack_name}. This may take a few minutes... "
              f"Check the CloudFormation Console for updates"
          )
  
      else:
          print(f"False. {stack_name} does not exist")
      cfn.delete_stack(StackName=stack_name)
  
      run_with_periodic_output(
          lambda: delete_waiter.wait(
              StackName=stack_name, WaiterConfig={"Delay": 10}
          ),
          "Still waiting for stack...",
      )
  
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 7 for calling a global function with example usage: delete_stack(stack_name, boto3_session) without return types