code: def make_array(word_id, words):
      ids = [word_id.get(word, 1) for word in words]
      return numpy.array(ids, numpy.int32)
  
file_path: chainer/examples/chainermn/seq2seq/europal.py
imports: from __future__ import unicode_literals
  import collections
  import gzip
  import io
  import os
  import re
  import numpy
  import progressbar
label_desc: Use image node_id 7 for calling a global function with example usage: make_array(word_id, words) and returns: numpy