code: def common_config(
      manifest_file, manifest_root, batch_size, subset_pct
  ):
      cache_root = get_data_cache_or_nothing("cifar-cache/")
  
      image_config = {"type": "image", "height": 32, "width": 32}
      label_config = {"type": "label", "binary": False}
      augmentation = {
          "type": "image",
          "scale": [0.8, 0.8],
          "crop_enable": True,
      }
  
      return {
          "manifest_filename": manifest_file,
          "manifest_root": manifest_root,
          "batch_size": batch_size,
          "block_size": 5000,
          "subset_fraction": float(subset_pct / 100.0),
          "cache_directory": cache_root,
          "etl": [image_config, label_config],
          "augmentation": [augmentation],
      }
  
file_path: neon/examples/cifar10_msra/data.py
imports: import numpy
  import os
  from tqdm import tqdm
  from neon.data import CIFAR10
  from neon.data.aeon_shim import AeonDataLoader
  from neon.data.dataloader_transformers import OneHot, TypeCast, BGRMeanSubtract
  from neon.util.persist import get_data_cache_or_nothing
  from PIL import Image
label_desc: Use image node_id 2 for calling a global function with example usage: common_config(manifest_file, manifest_root, batch_size, subset_pct) and returns: dict