def METHOD_NAME(self):
    # Test xyxy format unbatched
    height = 256
    width = 256
    bounding_boxes = {
        "boxes": np.array([[257, 257, 400, 400], [100, 100, 300, 300]]),
        "classes": np.array([0, 0]),
    }
    image = ops.ones(shape=(height, width, 3))
    bounding_boxes = bounding_box.clip_to_image(
        bounding_boxes, bounding_box_format="xyxy", images=image
    )
    self.assertAllEqual(
        bounding_boxes["boxes"],
        np.array([[-1, -1, -1, -1], [100, 100, 256, 256]]),
    ),
    self.assertAllEqual(
        bounding_boxes["classes"],
        np.array([-1, 0]),
    )