def METHOD_NAME(self):
    scale_factor = [0.4, 0.8]
    # rescale
    th_boxes = torch.Tensor([10, 10, 20, 20]).reshape(1, 1, 4)
    boxes = HorizontalBoxes(th_boxes)
    boxes.rescale_(scale_factor)
    rescaled_boxes_th = torch.Tensor([4, 8, 8, 16]).reshape(1, 1, 4)
    assert_allclose(boxes.tensor, rescaled_boxes_th)