code: def get_image(self, img, is_train):
          
          img_arr = mx.image.imread(img)
          img_arr = transform(img_arr, 256, 256, is_train, self.boxes[img])
          return img_arr
docs: Load and transform an image.