code: def get_embeds(embed_path):
      word_embeds, w2i = [np.random.randn(300)], {"_UNK_": 0}
      with codecs.open(embed_path) as f:
          for line in f:
              line = line.strip().split(" ")
              word, embed = line[0], line[1:]
              w2i[word] = len(word_embeds)
              word_embeds.append(np.array(embed, dtype=np.float32))
      w2i["-LRB-"] = w2i["("]
      w2i["-RRB-"] = w2i[")"]
      return np.array(word_embeds), w2i
  
imports: import codecs
  import numpy
  import dynet
label_desc: Use image node_id 2 for calling a global function with example usage: get_embeds(embed_path) and returns: np,  w2i