code: def test_bbox_to_polygon():
      assert geometry.bbox_to_polygon(((0, 0), (1, 1))) == (
          (0, 0),
          (1, 0),
          (0, 1),
          (1, 1),
      )
  
file_path: doctr/tests/common/test_utils_geometry.py
imports: from copy import deepcopy
  from math import hypot
  import numpy
  import pytest
  from doctr.io import DocumentFile
  from doctr.utils import geometry
label_desc: Use image node_id 1 for calling a global function with example usage: test_bbox_to_polygon() without return types