To make it easier for the model to get the label name from the label id, create a dictionary that maps the label name
to an integer and vice versa:

labels = food["train"].features["label"].names
label2id, id2label = dict(), dict()
for i, label in enumerate(labels):
     label2id[label] = str(i)
     id2label[str(i)] = label

Now you can convert the label id to a label name:

id2label[str(79)]
'prime_rib'

Preprocess
The next step is to load a ViT image processor to process the image into a tensor: