code: def _load_dict(dict_path):
      vocab = {}
      i = 0
      with open(dict_path, "r", encoding="utf-8") as fin:
          for line in fin:
              key = line.strip("\n")
              vocab[key] = i
              i += 1
      return vocab
  
file_path: PaddleHub/modules/text/punctuation_restoration/auto_punc/module.py
imports: import os
  import re
  from typing import List, Union
  import numpy
  import paddle
  from paddlehub.env import MODULE_HOME
  from paddlehub.module.module import moduleinfo, serving
  from paddlehub.utils.log import logger
  from paddlenlp.transformers import ErnieTokenizer, ErnieForTokenClassification
  from paddlenlp.data import Pad
label_desc: Use image node_id 2 for calling the Ernie obj's underlying member method code with example usage: obj._load_dict(dict_path) and returns: vocab