code: def get_default_master_type(num_gpus=1):
      """Returns master_type for trainingInput."""
      gpus_to_master_map = {
          0: "standard",
          1: "standard_p100",
          4: "complex_model_m_p100",
          8: "complex_model_l_gpu",
      }
      if num_gpus not in gpus_to_master_map:
          raise ValueError(
              "Num gpus must be in %s"
              % str(sorted(list(gpus_to_master_map.keys())))
          )
      return gpus_to_master_map[num_gpus]
  
imports: import datetime
  import os
  import pprint
  import shutil
  import subprocess
  import sys
  import tempfile
  from googleapiclient import discovery
  from oauth2client.client import GoogleCredentials
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
label_desc: Use image node_id 10 for calling a global function with example usage: get_default_master_type(num_gpus) and returns: gpus_to_master_map