code: def rotatePoint(xc, yc, xp, yp, theta):
      xoff = xp - xc
      yoff = yp - yc
  
      cosTheta = math.cos(theta)
      sinTheta = math.sin(theta)
      pResx = cosTheta * xoff + sinTheta * yoff
      pResy = -sinTheta * xoff + cosTheta * yoff
      # pRes = (xc + pResx, yc + pResy)
      return int(xc + pResx), int(yc + pResy)
  
imports: import os
  import re
  import itertools
  import cv2
  import time
  import numpy
  import torch
  from torch.autograd import Variable
  from utils.craft_utils import getDetBoxes, adjustResultCoordinates
  from data import imgproc
  from data.dataset import SynthTextDataSet
  import math
  import xml.etree.ElementTree
label_desc: Use image node_id 1 for calling a global function with example usage: rotatePoint(xc, yc, xp, yp, theta) and returns: int,  int