code: def table_to_sheet(table, wb):
      """
      Takes a table and workbook and writes the table to a new sheet.
      The sheet title will be the same as the table attribute name.
      """
      ws = wb.create_sheet(title=table.element.get("name"))
      insert_table(table, ws, 1, 1)
  
file_path: PaddleOCR/ppstructure/table/tablepyxl/tablepyxl.py
imports: from __future__ import absolute_import
  from lxml import html
  from openpyxl import Workbook
  from openpyxl.utils import get_column_letter
  from premailer import Premailer
  from tablepyxl.style import Table
label_desc: Use image node_id 4 for calling a global function with example usage: table_to_sheet(table, wb) without return types