code: def transpose_sequence(xs):
      """Transpose a list of Variables.
  
      This function transposes a list of :class:`~chainer.Variable`\\ s and
      returns a list of :class:`Variable`\\ s.
      For example a user gives ``[(0, 1, 2, 3), (4, 5), (6)]``, the function
      returns ``[(0, 4, 6), (1, 5), (2), (3)]``.
      Note that a given list needs to be sorted by each length of
      :class:`~chainer.Variable`.
  
      Args:
          xs (list of :class:`~chainer.Variable` or :ref:`ndarray`):
              Variables to transpose.
  
      Returns:
          tuple of :class:`~chainer.Variable`: Transposed list.
  
      .. admonition:: Example
  
          >>> lst = [chainer.Variable(np.array([1, 1, 1])),
          ...        chainer.Variable(np.array([2, 2])),
          ...        chainer.Variable(np.array([3]))]
          >>> lst
          [variable([1, 1, 1]), variable([2, 2]), variable([3])]
          >>> transposed = F.transpose_sequence(lst)
          >>> transposed
          (variable([1, 2, 3]), variable([1, 2]), variable([1]))
  
      """
      if not xs:
          return ()
      return TransposeSequence(len(xs[0])).apply(xs)
  
file_path: chainer/chainer/functions/array/transpose_sequence.py
imports: import numpy
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling a global function with example usage: transpose_sequence(xs) and returns: TransposeSequence, 