code: def swap_time_and_batch_axes(inputs):
      """Swaps time and batch axis (the first two axis)."""
      transposed_axes = tf.concat(
          [[1, 0], tf.range(2, tf.rank(inputs))], axis=0
      )
      return tf.transpose(inputs, transposed_axes)
  
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 contrib
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_op_util
label_desc: Use image node_id 1 for calling a global function with example usage: swap_time_and_batch_axes(inputs) and returns: tf