code: def get_dict_paths(
      vocabulary_args: Optional[List[str]],
      langs: List[str],
      save_dir: str,
  ) -> Dict[str, str]:
      """
      Extract dictionary files based on --vocabulary argument, for the given
      languages `langs`.
      vocabulary_arg: Optional[List[str]] where each element is a str with the format
      "lang:vocab_file"
      """
      dicts = {}
      if vocabulary_args is not None:
          for vocab_config in vocabulary_args:
              # vocab_config is in the format "lang:vocab_file"
              lang, vocab = vocab_config.split(":")
              if lang in langs:
                  dicts[lang] = vocab
      for lang in langs:
          if lang not in dicts:
              dicts[
                  lang
              ] = pytorch_translate_dictionary.default_dictionary_path(
                  save_dir=save_dir, dialect=lang
              )
      return dicts
  
file_path: translate/pytorch_translate/multilingual_utils.py
imports: import argparse
  import os
  from collections import defaultdict
  from typing import Dict, List, Optional, Tuple
  from pytorch_translate.data import dictionary
label_desc: Use image node_id 4 for calling a global function with example usage: get_dict_paths(vocabulary_args, langs, save_dir) and returns: dicts