def mpc_some(item): print("some:",) dill.dumps(item) #print(type(item), item.images.ndim) # Example of custom Batch class which defines some actions