code: def test_polygon_to_bbox():
      assert geometry.polygon_to_bbox(
          ((0, 0), (1, 0), (0, 1), (1, 1))
      ) == ((0, 0), (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 2 for calling a global function with example usage: test_polygon_to_bbox() without return types