Bounding box extraction

I am having some trouble with a function I found for generating the xmin, xmax, ymin, ymax located in a .xml file. I am not sure why is it not working and I feel like it’s a simple mistake that I am …