code: def split_on_batch(x):
      batch_size = tf.shape(x)[0]
      i = batch_size // 2
      return x[:i, :, :, :], x[i : 2 * i, :, :, :]
  
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 4 for calling a global function with example usage: split_on_batch(x) and returns: x,  x