code: def get_ami(ami_map: dict, instance_type: str) -> str:
      if is_gpu(instance_type) or is_inf(instance_type):
          return ami_map["accelerated_amd64"]
      if is_arm64(instance_type):
          return ami_map["cpu_arm64"]
      return ami_map["cpu_amd64"]
  
imports: import json
  import click
  from collections import namedtuple
  import re
  import yaml
label_desc: Use image node_id 17 for calling a global function with example usage: get_ami(ami_map, instance_type) and returns: ami_map, ami_map, ami_map