code: def _altair_chart_to_html(altair_chart, download_filename):
      """Write to a temporary string stand-in for the file to replace import URLs.
  
      Args:
        altair_chart: a chart object made by Altair.
        download_filename: string filename base for when users export images.
  
      Returns:
        HTML in string format.
      """
      temp_writer = io.StringIO()
      altair_chart.save(
          temp_writer,
          format="html",
          embed_options={"downloadFileName": download_filename},
          vegalite_version=VEGA_LITE_VERSION,
          vega_version=VEGA_VERSION,
          vegaembed_version=VEGA_EMBED_VERSION,
      )
      temp_html_string = temp_writer.getvalue()
      html_with_new_cdn = temp_html_string.replace(
          OLD_LIB_BASE_URL, NEW_LIB_BASE_URL
      )
      return html_with_new_cdn
  
imports: import io
  import json
  import os
  import altair
  import numpy
  import pandas
  import tensorflow
label_desc: Use image node_id 14 for calling a global function with example usage: _altair_chart_to_html(altair_chart, download_filename) and returns: html_with_new_cdn