code: def square_pad_mask(self, points, offset):
      x0, y0 = offset
      pad_points = points.copy()
      pad_points[::2] = pad_points[::2] + x0
      pad_points[1::2] = pad_points[1::2] + y0
      return pad_points
  
imports: import numpy
  from PIL import Image, ImageDraw
  import cv2
  from shapely.geometry import Polygon
  import math
  from ppocr.utils.poly_nms import poly_intersection
label_desc: Use image node_id 4 for calling the SquareResizePad obj's underlying member method code with example usage: obj.square_pad_mask(points, offset) and returns: pad_points