code: def __init__(self, args, text_detector=None, text_recognizer=None):
      self.args = args
      if not args.show_log:
          logger.setLevel(logging.INFO)
      benchmark_tmp = False
      if args.benchmark:
          benchmark_tmp = args.benchmark
          args.benchmark = False
      self.text_detector = (
          predict_det.TextDetector(copy.deepcopy(args))
          if text_detector is None
          else text_detector
      )
      self.text_recognizer = (
          predict_rec.TextRecognizer(copy.deepcopy(args))
          if text_recognizer is None
          else text_recognizer
      )
      if benchmark_tmp:
          args.benchmark = True
      self.table_structurer = predict_strture.TableStructurer(args)
      if args.table_algorithm in ["TableMaster"]:
          self.match = TableMasterMatcher()
      else:
          self.match = TableMatch(filter_ocr_result=True)
  
      (
          self.predictor,
          self.input_tensor,
          self.output_tensors,
          self.config,
      ) = utility.create_predictor(args, "table", logger)
  
imports: import os
  import sys
  import cv2
  import copy
  import logging
  import numpy
  import time
  import tools.infer.predict_rec
  import tools.infer.predict_det
  import tools.infer.utility
  from tools.infer.predict_system import sorted_boxes
  from ppocr.utils.utility import get_image_file_list, check_and_read
  from ppocr.utils.logging import get_logger
  from ppstructure.table.matcher import TableMatch
  from ppstructure.table.table_master_match import TableMasterMatcher
  from ppstructure.utility import parse_args
  import ppstructure.table.predict_structure
label_desc: Use image node_id 1 to create a new TableSystem object from inherited base classes: object with example: obj = TableSystem(args, text_detector, text_recognizer)