code: def test_resolve_enclosing_rbbox():
      pred = geometry.resolve_enclosing_rbbox(
          [
              np.asarray(
                  [[0.1, 0.1], [0.2, 0.2], [0.15, 0.25], [0.05, 0.15]]
              ),
              np.asarray(
                  [[0.5, 0.5], [0.6, 0.6], [0.55, 0.65], [0.45, 0.55]]
              ),
          ]
      )
      target1 = np.asarray(
          [[0.55, 0.65], [0.05, 0.15], [0.1, 0.1], [0.6, 0.6]]
      )
      target2 = np.asarray(
          [[0.05, 0.15], [0.1, 0.1], [0.6, 0.6], [0.55, 0.65]]
      )
      assert np.all(target1 - pred <= 1e-3) or np.all(
          target2 - pred <= 1e-3
      )
  
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 4 for calling a global function with example usage: test_resolve_enclosing_rbbox() without return types