code: def get_union(pD, pG):
      return Polygon(pD).union(Polygon(pG)).area
  
file_path: PaddleOCR/ppocr/data/imaug/copy_paste.py
imports: import copy
  import cv2
  import random
  import numpy
  from PIL import Image
  from shapely.geometry import Polygon
  from ppocr.data.imaug.iaa_augment import IaaAugment
  from ppocr.data.imaug.random_crop_data import is_poly_outside_rect
  from tools.infer.utility import get_rotate_crop_image
label_desc: Use image node_id 1 for calling a global function with example usage: get_union(pD, pG) and returns: Polygon