code: def img2img_transformer_base_tpu():
      """Hparams for training img2img_transformer on tpu."""
      hparams = img2img_transformer_base()
      update_hparams_for_tpu(hparams)
      hparams.batch_size = 2
      hparams.num_heads = 4  # heads are expensive on tpu
      hparams.num_decoder_layers = 8
      hparams.num_encoder_layers = 4
      hparams.shared_embedding_and_softmax_weights = False
      return hparams
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import numpy
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.layers import common_image_attention
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 35 for calling a global function with example usage: img2img_transformer_base_tpu() and returns: hparams