code: def test_nms():
      boxes = [
          [0.1, 0.1, 0.2, 0.2, 0.95],
          [0.15, 0.15, 0.19, 0.2, 0.90],  # to suppress
          [0.5, 0.5, 0.6, 0.55, 0.90],
          [0.55, 0.5, 0.7, 0.55, 0.85],  # to suppress
      ]
      to_keep = metrics.nms(np.asarray(boxes), thresh=0.2)
      assert to_keep == [0, 2]
  
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 10 for calling a global function with example usage: test_nms() without return types