I am trying to create batches for torch dataloader on databricks.
My py3 code:
from pyspark.sql.types import StringType, IntegerType, ArrayType cSchem