code: def create_decode_hparams():
      decode_hp = decoding.decode_hparams(FLAGS.decode_hparams)
      decode_hp.shards = FLAGS.decode_shards
      decode_hp.shard_id = FLAGS.worker_id
      decode_in_memory = (
          FLAGS.decode_in_memory or decode_hp.decode_in_memory
      )
      decode_hp.decode_in_memory = decode_in_memory
      decode_hp.decode_to_file = FLAGS.decode_to_file
      decode_hp.decode_reference = FLAGS.decode_reference
      return decode_hp
  
file_path: tensor2tensor/tensor2tensor/bin/t2t_decoder.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from tensor2tensor.bin import t2t_trainer
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.utils import decoding
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import trainer_lib
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 2 for calling a global function with example usage: create_decode_hparams() and returns: decode_hp