code: def test_resolve_enclosing_bbox():
      assert geometry.resolve_enclosing_bbox(
          [((0, 0.5), (1, 0)), ((0.5, 0), (1, 0.25))]
      ) == ((0, 0), (1, 0.5))
      pred = geometry.resolve_enclosing_bbox(
          np.array(
              [[0.1, 0.1, 0.2, 0.2, 0.9], [0.15, 0.15, 0.2, 0.2, 0.8]]
          )
      )
      assert pred.all() == np.array([0.1, 0.1, 0.2, 0.2, 0.85]).all()
  
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 3 for calling a global function with example usage: test_resolve_enclosing_bbox() without return types