code: def create_data_files(
      input_path: str, output_path: str, download: bool
  ):
      input_path = os.path.expanduser(input_path)
      output_path = os.path.expanduser(output_path)
      if download:
          os.makedirs(input_path, exist_ok=True)
  
      # Create the training split
      output_train_folder = os.path.join(output_path, "train")
      train_set = PatchCamelyon(
          input_path=input_path,
          output_path=output_train_folder,
          split="train",
          download=download,
      )
      to_disk_folder_split(
          train_set, output_train_folder, num_workers=8
      )
  
      # Create the validation split
      output_valid_folder = os.path.join(output_path, "val")
      valid_set = PatchCamelyon(
          input_path=input_path,
          output_path=output_valid_folder,
          split="valid",
          download=False,
      )
      to_disk_folder_split(
          valid_set, output_valid_folder, num_workers=8
      )
  
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 3 for calling a global function with example usage: create_data_files(input_path, output_path, download) without return types