code: def save_html(
      chart,
      file,
      embed_options=None,
      inline=False,
      full_html=True,
  ):
      """
      Save an Altair Chart to an HTML file after pre-applying data transformations
      and removing unused columns
  
      :param chart: alt.Chart
          The Altair chart to save
      :param file: str, pathlib.Path, or file-like object
          The file path to write the HTML file to, or a file-like object to write to
      :param embed_options: dict (default None)
          Dictionary of options to pass to vega-embed
      :param inline: boolean (default False)
          If False (default), the required JavaScript libraries are loaded from a
          CDN location. This results in a smaller file, but an internet connection
          is required to view the resulting HTML file.
  
          If True, all required JavaScript libraries are inlined.
          This results in a larger file, but no internet connection is required to view.
          inline=True requires Altair 5 and the altair_viewer package
      :param full_html: boolean (default True)
          If True, then a full html page is written. If False, then
          an HTML snippet that can be embedded into an HTML page is written.
      """
      from . import enable
  
      with enable():
          vegalite_spec = chart.to_dict()
  
      bundle = spec_to_mime_bundle(
          spec=vegalite_spec,
          mimetype="html",
          embed_options=embed_options,
          html_template="inline" if inline else "standard",
          full_html=full_html,
      )
  
      html = bundle["text/html"]
      write_file_or_filename(file, html)
  
file_path: vegafusion/python/vegafusion/vegafusion/save.py
imports: import json
  import pathlib
  from .renderer import spec_to_mime_bundle
label_desc: Use image node_id 1 for calling a global function with example usage: save_html(chart, file, embed_options, inline, full_html) without return types