code: def load_data(vocabulary, path):
      n_lines = count_lines(path)
      bar = progressbar.ProgressBar()
      data = []
      print("loading...: %s" % path)
      with io.open(path, encoding="utf-8") as f:
          for line in bar(f, max_value=n_lines):
              words = line.strip().split()
              array = numpy.array(
                  [vocabulary.get(w, UNK) for w in words], numpy.int32
              )
              data.append(array)
      return data
  
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 5 for calling a global function with example usage: load_data(vocabulary, path) and returns: data