code: def test_box_ioa():
      boxes = [
          [0.1, 0.1, 0.2, 0.2],
          [0.15, 0.15, 0.2, 0.2],
      ]
      mat = metrics.box_ioa(np.array(boxes), np.array(boxes))
      assert mat[1, 0] == mat[0, 0] == mat[1, 1] == 1.0
      assert abs(mat[0, 1] - 0.25) <= 1e-7
  
file_path: doctr/tests/common/test_utils_metrics.py
imports: import numpy
  import pytest
  from doctr.utils import metrics
label_desc: Use image node_id 11 for calling a global function with example usage: test_box_ioa() without return types