code: def build_pre_process_list(args):
      resize_op = {
          "ResizeTableImage": {
              "max_len": args.table_max_len,
          }
      }
      pad_op = {
          "PaddingTableImage": {
              "size": [args.table_max_len, args.table_max_len]
          }
      }
      normalize_op = {
          "NormalizeImage": {
              "std": [0.229, 0.224, 0.225]
              if args.table_algorithm not in ["TableMaster"]
              else [0.5, 0.5, 0.5],
              "mean": [0.485, 0.456, 0.406]
              if args.table_algorithm not in ["TableMaster"]
              else [0.5, 0.5, 0.5],
              "scale": "1./255.",
              "order": "hwc",
          }
      }
      to_chw_op = {"ToCHWImage": None}
      keep_keys_op = {"KeepKeys": {"keep_keys": ["image", "shape"]}}
      if args.table_algorithm not in ["TableMaster"]:
          pre_process_list = [
              resize_op,
              normalize_op,
              pad_op,
              to_chw_op,
              keep_keys_op,
          ]
      else:
          pre_process_list = [
              resize_op,
              pad_op,
              normalize_op,
              to_chw_op,
              keep_keys_op,
          ]
      return pre_process_list
  
file_path: PaddleOCR/ppstructure/table/predict_structure.py
imports: import os
  import sys
  import cv2
  import numpy
  import time
  import json
  import tools.infer.utility
  from ppocr.data import create_operators, transform
  from ppocr.postprocess import build_post_process
  from ppocr.utils.logging import get_logger
  from ppocr.utils.utility import get_image_file_list, check_and_read
  from ppocr.utils.visual import draw_rectangle
  from ppstructure.utility import parse_args
label_desc: Use image node_id 1 for calling a global function with example usage: build_pre_process_list(args) and returns: pre_process_list