code: def document_to_xl(doc, filename, base_url=None):
      """
      Takes a string representation of an html document and writes one sheet for
      every table in the document. The workbook is written out to a file called filename
      """
      wb = document_to_workbook(doc, base_url=base_url)
      wb.save(filename)
  
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 6 for calling a global function with example usage: document_to_xl(doc, filename, base_url) without return types