code: def _build_dictionary(
      filenames,
      task,
      args,
      src=False,
      tgt=False,
  ):
      assert src ^ tgt
      return task.build_dictionary(
          filenames,
          workers=args.workers,
          threshold=args.thresholdsrc if src else args.thresholdtgt,
          nwords=args.nwordssrc if src else args.nwordstgt,
          padding_factor=args.padding_factor,
      )
  
imports: import logging
  import os
  import shutil
  import sys
  import typing
  from argparse import Namespace
  from itertools import zip_longest
  from fairseq import options, tasks, utils
  from fairseq.binarizer import AlignmentDatasetBinarizer, FileBinarizer, VocabularyDatasetBinarizer
  from fairseq.data import Dictionary
label_desc: Use image node_id 7 for calling a global function with example usage: _build_dictionary(filenames, task, args, src, tgt) and returns: task