code: def test_iou(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], [14.0, 14.0, 15.0, 15.0]], dtype=dtype
      )
      expected_result = tf.constant([0.875, 1.0], dtype=dtype)
      loss = giou_loss(boxes1, boxes2, mode="iou")
      test_utils.assert_allclose_according_to_type(
          loss, expected_result
      )
  
file_path: addons/tensorflow_addons/losses/tests/giou_loss_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.utils import test_utils
  from tensorflow_addons.losses import giou_loss, GIoULoss
label_desc: Use image node_id 2 for calling a global function with example usage: test_iou(dtype) without return types