def METHOD_NAME(self, imgs, bboxes):
    t, h, w, c = imgs.shape
    r_h, r_w = int(h * 0.1), int(w * 0.1)
    x0, y0 = random.randint(-r_w, r_w), random.randint(-r_h, r_h)
    x1, y1 = random.randint(w - r_w,
                            w + r_w), random.randint(h - r_h, h + r_h)
    tfm = ExtentTransform((x0, y0, x1, y1), output_size=(y1 - y0, x1 - x0))
    imgs = np.stack([tfm.apply_image(img) for img in imgs])
    bboxes = tfm.apply_box(bboxes)
    return imgs, bboxes