code: def tanh_discrete_unbottleneck(x, hidden_size):
      """Simple un-discretization from tanh."""
      x = tf.layers.dense(
          x, hidden_size, name="tanh_discrete_unbottleneck"
      )
      return x
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from functools import partial
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.layers import common_image_attention
  from tensor2tensor.layers import common_layers
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  import tensorflow_probability
  from tensorflow.python.training import moving_averages
label_desc: Use image node_id 24 for calling a global function with example usage: tanh_discrete_unbottleneck(x, hidden_size) and returns: x