code: def save_html(data, fileobj, **kwargs):
      """Save an embedded visualization to file.
  
      This will produce a self-contained HTML file. Internet access is still required
      for the D3 and LDAvis libraries.
  
      Parameters
      ----------
      data : PreparedData, created using :func:`prepare`
          The data for the visualization.
      fileobj : filename or file object
          The filename or file-like object in which to write the HTML
          representation of the visualization.
      **kwargs :
          additional keyword arguments will be passed to :func:`prepared_data_to_html`
  
      See Also
      --------
      :func:`save_json`: save json representation of a visualization to file
      :func:`prepared_data_to_html` : output html representation of the visualization
      :func:`fig_to_dict` : output dictionary representation of the visualization
      """
      try:
          if isinstance(fileobj, basestring):
              fileobj = open(fileobj, "w")
      except NameError:
          if isinstance(fileobj, str):
              fileobj = open(fileobj, "w")
      if not hasattr(fileobj, "write"):
          raise ValueError(
              "fileobj should be a filename or a writable file"
          )
      fileobj.write(prepared_data_to_html(data, **kwargs))
  
file_path: pyLDAvis/pyLDAvis/_display.py
imports: import warnings
  import random
  import json
  import jinja2
  import re
  from pyLDAvis._server import serve
  from pyLDAvis.utils import get_id, write_ipynb_local_js, NumPyEncoder
  from pyLDAvis._prepare import PreparedData
  import pyLDAvis.urls
label_desc: Use image node_id 6 for calling a global function with example usage: save_html(data, fileobj) without return types