code: def reshape_to_same_height(self, img_list):
      h = img_list[0].shape[0]
      for idx in range(1, len(img_list)):
          new_w = round(
              1.0 * img_list[idx].shape[1] / img_list[idx].shape[0] * h
          )
          img_list[idx] = cv2.resize(img_list[idx], (new_w, h))
      return img_list
  
file_path: PaddleOCR/StyleText/engine/predictors.py
imports: import numpy
  import cv2
  import math
  import paddle
  from arch import style_text_rec
  from utils.sys_funcs import check_gpu
  from utils.logging import get_logger
label_desc: Use image node_id 2 for calling the StyleTextRecPredictor obj's underlying member method code with example usage: obj.reshape_to_same_height(img_list) and returns: img_list