class_docstr: Wrapper class of Dataset class that performs multi-threaded data loading
docstr: Initialize this class
  Step 1: create a dataset instance given the name [dataset_mode]
  Step 2: create a multi-threaded data loader.
docstr_tok: ["Initialize","this","class","Step","1",":","create","a","dataset","instance","given","the","name","[","dataset_mode","]","Step","2",":","create","a","multi-threaded","data","loader","."]
code: def __init__(self, opt, ds):
      """Initialize this class
      Step 1: create a dataset instance given the name [dataset_mode]
      Step 2: create a multi-threaded data loader.
      """
      self.opt = opt
      self.dataset = ds
      self.dataloader = data.DataLoader(
          self.dataset,
          batch_size=opt.batch_size,
          shuffle=not opt.serial_batches,
          num_workers=int(opt.num_threads),
      )
  
imports: import sys
  import os
  import pathlib
  import logging
  import time
  import argparse
  from collections import namedtuple
  import numpy
  import torch
  import torch.utils.data
  import nni
  from nni.utils import merge_parameter
  from pix2pixlib.data.aligned_dataset import AlignedDataset
  from pix2pixlib.models.pix2pix_model import Pix2PixModel
  from base_params import get_base_params
label_desc: Use image node_id 1 to create a new CustomDatasetDataLoader object  with example: obj = CustomDatasetDataLoader(opt, ds)