How to perform K-Fold Implementation in Transfer Learning tutorial

Finetuning Torchvision Models — PyTorch Tutorials 1.2.0 documentation.

I am using this tutorial to implement transfer learning on my private dataset. However, I want to implement K-Fold in this tutorial. I am new to all of these and unable to comprehend how to apply K-fold validation.

I would be grateful if anyone could guide me with the changes I need to make to this tutorial