code: def load_vocab(file_path):
      """
      load the given vocabulary
      """
      vocab = {}
      with io.open(file_path, "r", encoding="utf8") as f:
          for line in f:
              parts = line.strip().split("\t")
              vocab[parts[0]] = int(parts[1])
  
      return vocab
  
file_path: PaddleHub/modules/text/embedding/word2vec_skipgram/module.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import os
  import paddle.fluid
  import paddlehub
  from paddlehub.common.paddle_helper import add_vars_prefix
  from paddlehub.module.module import moduleinfo
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(file_path) and returns: vocab