code: def preprocess(self, im):
      input_size = self.input_size
      im_shape = im.shape
      im_size_min = np.min(im_shape[0:2])
      im_size_max = np.max(im_shape[0:2])
      im_scale = float(input_size) / float(im_size_max)
      im = cv2.resize(im, None, None, fx=im_scale, fy=im_scale)
      img_mean = [0.485, 0.456, 0.406]
      img_std = [0.229, 0.224, 0.225]
      # im = im[:, :, ::-1].astype(np.float32)
      im = im / 255
      im -= img_mean
      im /= img_std
      new_h, new_w, _ = im.shape
      im_padded = np.zeros(
          (input_size, input_size, 3), dtype=np.float32
      )
      im_padded[:new_h, :new_w, :] = im
      im_padded = im_padded.transpose((2, 0, 1))
      im_padded = im_padded[np.newaxis, :]
      return im_padded, im_scale
  
file_path: PaddleOCR/ppocr/data/imaug/east_process.py
imports: import math
  import cv2
  import numpy
  import json
  import sys
  import os
label_desc: Use image node_id 2 for calling the EASTProcessTrain obj's underlying member method code with example usage: obj.preprocess(im) and returns: im_padded,  im_scale