code: def get_accelerator_type(accl_type):
      """Returns the accelerator type to be used on a GCP machine."""
      accl_type_map = {
          "CPU": "ACCELERATOR_TYPE_UNSPECIFIED",
          "K80": "NVIDIA_TESLA_K80",
          "P100": "NVIDIA_TESLA_P100",
          "V100": "NVIDIA_TESLA_V100",
          "P4": "NVIDIA_TESLA_P4",
          "T4": "NVIDIA_TESLA_T4",
          "TPU_V2": "TPU_V2",
          "TPU_V3": "TPU_V3",
      }
      return accl_type_map[accl_type]
  
file_path: cloud/src/python/tensorflow_cloud/core/gcp.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import re
  import google.auth
label_desc: Use image node_id 4 for calling a global function with example usage: get_accelerator_type(accl_type) and returns: accl_type_map