code: def get_outer_poly(bbox_list):
      x1 = min([bbox[0] for bbox in bbox_list])
      y1 = min([bbox[1] for bbox in bbox_list])
      x2 = max([bbox[2] for bbox in bbox_list])
      y2 = max([bbox[3] for bbox in bbox_list])
      return [[x1, y1], [x2, y1], [x2, y2], [x1, y2]]
  
file_path: PaddleOCR/ppstructure/kie/tools/trans_funsd_label.py
imports: import json
  import os
  import sys
  import cv2
  import numpy
  from copy import deepcopy
label_desc: Use image node_id 2 for calling a global function with example usage: get_outer_poly(bbox_list) and returns: list