code: def get_variable_initializer(hparams):
      """Get variable initializer from hparams."""
      if not hparams.initializer:
          return None
  
      mlperf_log.transformer_print(
          key=mlperf_log.MODEL_HP_INITIALIZER_GAIN,
          value=hparams.initializer_gain,
          hparams=hparams,
      )
  
      if not tf.executing_eagerly():
          tf.logging.info(
              "Using variable initializer: %s", hparams.initializer
          )
      if hparams.initializer == "orthogonal":
          return tf.orthogonal_initializer(
              gain=hparams.initializer_gain
          )
      elif hparams.initializer == "uniform":
          max_val = 0.1 * hparams.initializer_gain
          return tf.random_uniform_initializer(-max_val, max_val)
      elif hparams.initializer == "normal_unit_scaling":
          return tf.variance_scaling_initializer(
              hparams.initializer_gain,
              mode="fan_avg",
              distribution="normal",
          )
      elif hparams.initializer == "uniform_unit_scaling":
          return tf.variance_scaling_initializer(
              hparams.initializer_gain,
              mode="fan_avg",
              distribution="uniform",
          )
      elif hparams.initializer == "xavier":
          return tf.initializers.glorot_uniform()
      else:
          raise ValueError(
              "Unrecognized initializer: %s" % hparams.initializer
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import adafactor
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import misc_utils
  from tensor2tensor.utils import mlperf_log
  from tensor2tensor.utils import multistep_optimizer
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import yellowfin
  import tensorflow.compat.v1
  from tensorflow.python.framework import dtypes
label_desc: Use image node_id 16 for calling a global function with example usage: get_variable_initializer(hparams) and returns: None, tf, tf, tf, tf, tf