code: def load_prescription_gt(dataFolder):
      total_img_path = []
      total_imgs_bboxes = []
      for root, directories, files in os.walk(dataFolder):
          for file in files:
              if ".jpg" in file:
                  img_path = os.path.join(root, file)
                  total_img_path.append(img_path)
              if ".xml" in file:
                  gt_path = os.path.join(root, file)
                  total_imgs_bboxes.append(gt_path)
  
      total_imgs_parsing_bboxes = []
      for img_path, bbox in zip(
          sorted(total_img_path), sorted(total_imgs_bboxes)
      ):
          # check file
  
          assert img_path.split(".jpg")[0] == bbox.split(".xml")[0]
  
          result_label = xml_parsing(bbox)
          total_imgs_parsing_bboxes.append(result_label)
  
      return total_imgs_parsing_bboxes, sorted(total_img_path)
  
imports: import os
  import re
  import itertools
  import cv2
  import time
  import numpy
  import torch
  from torch.autograd import Variable
  from utils.craft_utils import getDetBoxes, adjustResultCoordinates
  from data import imgproc
  from data.dataset import SynthTextDataSet
  import math
  import xml.etree.ElementTree
label_desc: Use image node_id 4 for calling a global function with example usage: load_prescription_gt(dataFolder) and returns: total_imgs_parsing_bboxes,  sorted