code: def load_dataset(
      self,
      split: str,
      src_bin_path: str,
      tgt_bin_path: str,
      weights_file=None,
      is_npz=True,
  ):
      src_bin_path = (
          pytorch_translate_utils.maybe_parse_collection_argument(
              src_bin_path
          )
      )
      tgt_bin_path = (
          pytorch_translate_utils.maybe_parse_collection_argument(
              tgt_bin_path
          )
      )
      # At most one of dataset_upsampling / dataset_relative_ratio could be
      # specified.
      if type(src_bin_path) is str:
          assert type(tgt_bin_path) is str
          self._load_dataset_single_path(
              split=split,
              src_bin_path=src_bin_path,
              tgt_bin_path=tgt_bin_path,
              weights_file=weights_file,
              is_npz=is_npz,
          )
      else:
          self._load_dataset_multi_path(
              split, src_bin_path, tgt_bin_path, is_npz=is_npz
          )
  
      if getattr(self.args, "log_verbose", False):
          print("Finished loading dataset", flush=True)
  
      print(f"| {split} {len(self.datasets[split])} examples")
  
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 9 for calling the PytorchTranslateTask obj's underlying member method code with example usage: obj.load_dataset(split, src_bin_path, tgt_bin_path, weights_file, is_npz) without return types