I think this code you posted does what you want already.
In summary what it does:

go over all the predicted boxes and create an output list with them ((label, box))
using the boxes, go over all the images and crop the internals of the box and save it to a file

you get used to this kind of code after a while, take your time to experiment with it.