code: def get_tags(
      stack_name: str, boto3_session: boto3.session.Session
  ) -> Dict[Any, Any]:
      cfn = boto3_session.client("cloudformation")
  
      print(f"Retrieving tags for CloudFormation Stack ({stack_name})")
  
      description = cfn.describe_stacks(StackName=stack_name)
      stack = description["Stacks"][0]
      return {x["Key"]: x["Value"] for x in stack["Tags"]}
  
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 5 for calling a global function with example usage: get_tags(stack_name, boto3_session) and returns: unknown