code: def create_food_101_disk_folder(input_path: str, output_path: str):
      for split in ["train", "test"]:
          dataset = Food101(
              input_path=input_path,
              output_path=output_path,
              split=split,
          )
          for label in dataset.classes:
              os.makedirs(
                  os.path.join(output_path, split, label), exist_ok=True
              )
          loader = DataLoader(
              dataset,
              num_workers=8,
              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_food101_data_files.py
imports: import argparse
  import os
  from PIL import Image
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from vissl.utils.download import download_and_extract_archive
  from vissl.utils.io import cleanup_dir
label_desc: Use image node_id 3 for calling a global function with example usage: create_food_101_disk_folder(input_path, output_path) without return types