code: def setup_task(cls, args, **kwargs):
      assert pytorch_translate_data.is_multilingual(
          args
      ), "Must set `--task pytorch_translate_multilingual` for multilingual training"
      args.left_pad_source = options.eval_bool(args.left_pad_source)
  
      def load_dicts(langs, paths):
          dicts = OrderedDict()
          for lang, dict_path in zip(langs, paths):
              d = pytorch_translate_dictionary.Dictionary.load(
                  dict_path
              )
              dicts[lang] = d
              print(f"| [{lang}] dictionary: {len(d)} types")
          return dicts
  
      if not hasattr(args, "multiling_source_vocab_file"):
          args.multiling_encoder_lang = args.multiling_source_lang
          args.multiling_source_vocab_file = [args.source_vocab_file]
      if not hasattr(args, "multiling_target_vocab_file"):
          args.multiling_decoder_lang = args.multiling_target_lang
          args.multiling_target_vocab_file = [args.target_vocab_file]
  
      # Load dictionaries
      src_dicts = load_dicts(
          args.multiling_encoder_lang, args.multiling_source_vocab_file
      )
      tgt_dicts = load_dicts(
          args.multiling_decoder_lang, args.multiling_target_vocab_file
      )
  
      return cls(args, src_dicts, tgt_dicts)
  
imports: import os
  from collections import OrderedDict
  from typing import Dict, List, Optional, Tuple
  import numpy
  from fairseq import data, options
  from fairseq.data import ConcatDataset, LanguagePairDataset, NoisingDataset
  from fairseq.data.multi_corpus_sampled_dataset import MultiCorpusSampledDataset
  from fairseq.data.noising import UnsupervisedMTNoising
  from fairseq.tasks import LegacyFairseqTask, register_task
  from pytorch_translate import constants, utils
  from pytorch_translate.data import char_data, data, dictionary, utils, weighted_data
  from pytorch_translate.data.language_pair_upsampling_dataset import LanguagePairUpsamplingDataset
  from pytorch_translate.research.multisource import multisource_data
label_desc: Use image node_id 2 for calling the PytorchTranslateMultilingualTask obj's underlying member method code with example usage: obj.setup_task(cls, args) and returns: cls, dicts