def METHOD_NAME(self):
    th_boxes = torch.Tensor([10, 10, 20, 20]).reshape(1, 1, 4)
    img_shape = [13, 14]
    boxes = HorizontalBoxes(th_boxes)
    boxes.clip_(img_shape)
    cliped_boxes_th = torch.Tensor([10, 10, 14, 13]).reshape(1, 1, 4)
    assert_allclose(boxes.tensor, cliped_boxes_th)