def METHOD_NAME(dtype):
    boxes1 = tf.constant([[4.0, 3.0, 7.0, 5.0], [5.0, 6.0, 10.0, 7.0]], dtype=dtype)
    boxes2 = tf.constant([[3.0, 4.0, 6.0, 8.0]], dtype=dtype)
    expand_boxes1 = tf.expand_dims(boxes1, -2)
    expand_boxes2 = tf.expand_dims(boxes2, 0)
    expected_result = tf.constant([1.07500000298023224, 1.366071], dtype=dtype)
    loss = giou_loss(expand_boxes1, expand_boxes2)
    test_utils.assert_allclose_according_to_type(loss, expected_result)