How to load PersonReID dataset in form of anchors, positive and negative images

Hi, I am working on Person re-identification. I have to use Triplet loss but I am confused how I should read data in the form of anchors and positive and negative image pairs. Help would be appreciated.