code: def merge_table_blocks(blocks: List[Page]):
      current_lines = []
      current_bbox = None
      for page in blocks:
          new_page_blocks = []
          pnum = page.pnum
          for block in page.blocks:
              if block.most_common_block_type() != "Table":
                  if len(current_lines) > 0:
                      new_block = Block(
                          lines=deepcopy(current_lines),
                          pnum=pnum,
                          bbox=current_bbox,
                      )
                      new_page_blocks.append(new_block)
                      current_lines = []
                      current_bbox = None
  
                  new_page_blocks.append(block)
                  continue
  
              current_lines.extend(block.lines)
              if current_bbox is None:
                  current_bbox = block.bbox
              else:
                  current_bbox = merge_boxes(current_bbox, block.bbox)
  
          if len(current_lines) > 0:
              new_block = Block(
                  lines=deepcopy(current_lines),
                  pnum=pnum,
                  bbox=current_bbox,
              )
              new_page_blocks.append(new_block)
              current_lines = []
              current_bbox = None
  
          page.blocks = new_page_blocks
  
file_path: pdf-to-markdown/marker/cleaners/table.py
imports: from marker.bbox import merge_boxes
  from marker.schema import Line, Span, Block, Page
  from copy import deepcopy
  from tabulate import tabulate
  from typing import List
  import re
  import textwrap
label_desc: Use image node_id 1 for calling a global function with example usage: merge_table_blocks(blocks) without return types