code: def load_vocab_file(path: str) -> Dict[str, int]:
      vocab: Dict[str, int] = {}
      with open(path, "r") as fi:
          for line in fi:
              token, index = line.strip().split(" ")
              vocab[token] = int(index)
      return vocab
  
file_path: espnet/egs/iwslt16/mt1/local/generate_json.py
imports: import argparse
  import json
  import os
  from logging import getLogger
  from typing import Dict, List
label_desc: Use image node_id 2 for calling a global function with example usage: load_vocab_file(path) and returns: vocab