def METHOD_NAME(dtype):
    boxes1 = tf.constant([4.0, 3.0, 7.0, 5.0], dtype=dtype)
    boxes2 = tf.constant([3.0, 4.0, 6.0, 8.0], dtype=dtype)
    expected_result = tf.constant(1.07500000298023224, dtype=dtype)
    loss = giou_loss(boxes1, boxes2)
    test_utils.assert_allclose_according_to_type(loss, expected_result)