code: def create_estimator(run_config, hparams):
      return trainer_lib.create_estimator(
          FLAGS.model,
          hparams,
          run_config,
          decode_hparams=decoding.decode_hparams(FLAGS.decode_hparams),
          use_tpu=FLAGS.use_tpu,
          export_saved_model_api_version=FLAGS.export_saved_model_api_version,
          use_guarantee_const_getter=FLAGS.use_guarantee_const_getter,
      )
  
file_path: tensor2tensor/tensor2tensor/serving/export.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.utils import decoding
  from tensor2tensor.utils import t2t_model
  from tensor2tensor.utils import trainer_lib
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  import tensorflow_hub
label_desc: Use image node_id 2 for calling a global function with example usage: create_estimator(run_config, hparams) and returns: trainer_lib