code: def generator(x, hparams, name, reuse=False):
      with tf.variable_scope(name, reuse=reuse):
          return transformer_vae.residual_conv(
              x, 1, 3, hparams, "generator"
          )
  
file_path: tensor2tensor/tensor2tensor/models/research/cycle_gan.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import modalities
  from tensor2tensor.models.research import transformer_vae
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: generator(x, hparams, name, reuse) and returns: transformer_vae