docstr_tok: []
code: def calculate_average_height(self, poly_quads):
      """ """
      height_list = []
      for quad in poly_quads:
          quad_h = (
              np.linalg.norm(quad[0] - quad[3])
              + np.linalg.norm(quad[2] - quad[1])
          ) / 2.0
          height_list.append(quad_h)
      average_height = max(sum(height_list) / len(height_list), 1.0)
      return average_height
  
imports: import math
  import cv2
  import numpy
  import json
  import sys
  import os
label_desc: Use image node_id 7 for calling the SASTProcessTrain obj's underlying member method code with example usage: obj.calculate_average_height(poly_quads) and returns: average_height