def decodeClass(cls):
    """
    By default webdataset converts str and int values into binary values. To obtain ints for processing, they need to be 
    decoded. Commonly pytorch expects an int class, so here is a simple decoder that can be used along with the BytToPil function 
    like:
    WebDataSet(FileName).to_tuple('img','cls').map_tuple(ByteToPil,decodeClass).map_tuple(image_cropping, lambda x:x).shuffle(10000)        
    """
    return int(cls)