code: def load_vocab(file_path):
      """
      Given a file, prepare the vocab dictionary where each line is the value and
      (line_no - 1) is the key
      """
      vocab = {}
      with PathManager.open(file_path, "r") as file_contents:
          for idx, word in enumerate(file_contents):
              vocab[str(idx)] = word.strip()
      return vocab
  
file_path: pytext/demo/datasource/source.py
imports: import os
  from random import Random
  from typing import Dict, List, Type
  from pytext.common.constants import SpecialTokens
  from pytext.data.sources.data_source import RootDataSource
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: load_vocab(file_path) and returns: vocab