code: def select_coord(self, src_polys, box, endx, endy):
      if self.limit_paste:
          xmin, ymin, xmax, ymax = (
              box[:, 0].min(),
              box[:, 1].min(),
              box[:, 0].max(),
              box[:, 1].max(),
          )
          for _ in range(50):
              paste_x = random.randint(0, endx)
              paste_y = random.randint(0, endy)
              xmin1 = xmin + paste_x
              xmax1 = xmax + paste_x
              ymin1 = ymin + paste_y
              ymax1 = ymax + paste_y
  
              num_poly_in_rect = 0
              for poly in src_polys:
                  if not is_poly_outside_rect(
                      poly, xmin1, ymin1, xmax1 - xmin1, ymax1 - ymin1
                  ):
                      num_poly_in_rect += 1
                      break
              if num_poly_in_rect == 0:
                  return paste_x, paste_y
          return None, None
      else:
          paste_x = random.randint(0, endx)
          paste_y = random.randint(0, endy)
          return paste_x, paste_y
  
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 4 for calling the CopyPaste obj's underlying member method code with example usage: obj.select_coord(src_polys, box, endx, endy) and returns: None,  None, paste_x,  paste_y, paste_x,  paste_y