docstr: Calculate the average angle between left and right edge in given poly.
docstr_tok: ["Calculate","the","average","angle","between","left","and","right","edge","in","given","poly","."]
code: def average_angle(self, poly):
      """
      Calculate the average angle between left and right edge in given poly.
      """
      p0, p1, p2, p3 = poly
      angle30 = self.vector_angle(p3, p0)
      angle21 = self.vector_angle(p2, p1)
      return (angle30 + angle21) / 2
  
imports: import math
  import cv2
  import numpy
  from skimage.morphology._skeletonize import thin
  from ppocr.utils.e2e_utils.extract_textpoint_fast import sort_and_expand_with_direction_v2
label_desc: Use image node_id 20 for calling the PGProcessTrain obj's underlying member method code with example usage: obj.average_angle(poly) and returns: unknown