code: def test_estimate_page_angle():
      straight_polys = np.array(
          [
              [[0.3, 0.3], [0.4, 0.3], [0.4, 0.4], [0.3, 0.4]],
              [[0.4, 0.4], [0.5, 0.4], [0.5, 0.5], [0.4, 0.5]],
              [[0.5, 0.5], [0.6, 0.5], [0.6, 0.6], [0.5, 0.6]],
          ]
      )
      rotated_polys = geometry.rotate_boxes(
          straight_polys, angle=20, orig_shape=(512, 512)
      )
      angle = geometry.estimate_page_angle(rotated_polys)
      assert np.isclose(angle, 20)
  
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 9 for calling a global function with example usage: test_estimate_page_angle() without return types