code: def export_and_save_report(working_dir: str, output_file: str):
      """
      Exports a previously executed notebook and saves it as a static HTML file.
  
      Parameters
      ----------
      working_dir : str
          Path to the directory containing the executed notebook.
      output_file : str
          Path to the html file that will be created.
      """
  
      exporter = HTMLExporter(
          exclude_input=True,
          extra_template_basedirs=[
              os.path.join(
                  get_project_root(), "shapash", "report", "template"
              )
          ],
          template_name="custom",
          exclude_anchor_links=True,
      )
      (body, resources) = exporter.from_filename(
          filename=os.path.join(working_dir, "base_report.ipynb")
      )
  
      with open(output_file, "w") as file:
          file.write(body)
  
file_path: shapash/shapash/report/generation.py
imports: from typing import Optional, Union
  import os
  import pandas
  from nbconvert import HTMLExporter
  import papermill
  from shapash.utils.utils import get_project_root
label_desc: Use image node_id 2 for calling a global function with example usage: export_and_save_report(working_dir, output_file) without return types