code: def test_save_html(basic_chart, inline):
      out = io.StringIO()
      basic_chart.save(out, format="html", inline=inline)
      out.seek(0)
      content = out.read()
  
      assert content.startswith("<!DOCTYPE html>")
  
      if inline:
          assert '<script type="text/javascript">' in content
      else:
          assert 'src="https://cdn.jsdelivr.net/npm/vega@5' in content
          assert (
              'src="https://cdn.jsdelivr.net/npm/vega-lite@5' in content
          )
          assert (
              'src="https://cdn.jsdelivr.net/npm/vega-embed@6'
              in content
          )
  
imports: import io
  import json
  import operator
  import os
  import pathlib
  import tempfile
  import jsonschema
  import pytest
  import pandas
  import altair.vegalite.v5
label_desc: Use image node_id 11 for calling a global function with example usage: test_save_html(basic_chart, inline) without return types