code: def save_target_vocabs(target_vocabs: List[Vocab], folder: str):
      """
      Saves target vocabularies (primary surface form vocabulary) and optional factor vocabularies to folder.
  
      :param target_vocabs: Target vocabulary.
      :param folder: Destination folder.
      """
      for i, vocab in enumerate(target_vocabs):
          vocab_to_json(
              vocab, os.path.join(folder, C.VOCAB_TRG_NAME % i)
          )
  
imports: import argparse
  import json
  import logging
  import os
  from collections import Counter
  from itertools import chain, islice
  from typing import Dict, Iterable, List, Optional, Tuple, Callable
  from sockeye.log import setup_main_logger
  from .None import constants
  from .None import utils
label_desc: Use image node_id 10 for calling a global function with example usage: save_target_vocabs(target_vocabs, folder) without return types