class_docstr: Dataset used to parallelize the transformation of the dataset via a DataLoader
code: def __getitem__(self, idx: int) -> bool:
      image, target = self.dataset[idx]
      split = "train" if idx in self.training_set_ids else "val"
      os.makedirs(
          os.path.join(self.output_path, split, f"bin_{target}"),
          exist_ok=True,
      )
      image.save(
          os.path.join(
              self.output_path,
              split,
              f"bin_{target}",
              f"image_{idx}.jpg",
          )
      )
      return True
  
imports: import argparse
  import os
  from typing import Set
  import numpy
  from PIL import Image
  from torch.utils.data import DataLoader, Dataset
  from tqdm import tqdm
  from vissl.utils.download import download_and_extract_archive
label_desc: Use image node_id 3 for calling the DSpritesMapper obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: True