code: def sequence_embed(embed, xs):
      x_len = [len(x) for x in xs]
      x_section = numpy.cumsum(x_len[:-1])
      ex = embed(F.concat(xs, axis=0))
      exs = F.split_axis(ex, x_section, 0)
      return exs
  
imports: import argparse
  import datetime
  import io
  from nltk.translate import bleu_score
  import numpy
  import progressbar
  import six
  import chainer
  import chainer.functions
  import chainer.links
  from chainer import training
  from chainer.training import extensions
  import chainerx
label_desc: Use image node_id 1 for calling a global function with example usage: sequence_embed(embed, xs) and returns: exs