code: def to_disk_folder_split(
      dataset: PatchCamelyon, output_folder: str, num_workers: int
  ):
      """
      Create one split of the disk_folder format
      """
      os.makedirs(os.path.join(output_folder, "tumor"), exist_ok=True)
      os.makedirs(
          os.path.join(output_folder, "no_tumor"), exist_ok=True
      )
      loader = DataLoader(
          dataset,
          num_workers=num_workers,
          batch_size=1,
          collate_fn=lambda x: x[0],
      )
      with tqdm(total=len(dataset)) as progress_bar:
          for _ in loader:
              progress_bar.update(1)
  
file_path: vissl/extra_scripts/datasets/create_patch_camelyon_data_files.py
imports: import argparse
  import gzip
  import os
  from collections import OrderedDict
  from typing import NamedTuple
  from PIL import Image
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from vissl.utils.download import download_url
label_desc: Use image node_id 2 for calling a global function with example usage: to_disk_folder_split(dataset, output_folder, num_workers) without return types