code: def _make_all(lang, vocab, args):
      if args.trainpref:
          _make_dataset(
              vocab,
              args.trainpref,
              "train",
              lang,
              args=args,
              num_workers=args.workers,
          )
      if args.validpref:
          for k, validpref in enumerate(args.validpref.split(",")):
              outprefix = "valid{}".format(k) if k > 0 else "valid"
              _make_dataset(
                  vocab,
                  validpref,
                  outprefix,
                  lang,
                  args=args,
                  num_workers=args.workers,
              )
      if args.testpref:
          for k, testpref in enumerate(args.testpref.split(",")):
              outprefix = "test{}".format(k) if k > 0 else "test"
              _make_dataset(
                  vocab,
                  testpref,
                  outprefix,
                  lang,
                  args=args,
                  num_workers=args.workers,
              )
  
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 11 for calling a global function with example usage: _make_all(lang, vocab, args) without return types