def METHOD_NAME(example_batch, input_size: int, transform_type: str):
    example_batch["image"] = [
        pil_loader(f, input_size, transform_type) for f in example_batch["file"]
    ]
    return example_batch