code: def test_render_embed_js(_):
      c = Base(render_opts=RenderOpts(is_embed_js=True))
      # Embedded JavaScript
      content = c.render_embed()
      assert_not_in(
          CurrentConfig.ONLINE_HOST,
          content,
          "Embedding JavaScript fails",
      )
      # No embedded JavaScript
      c.render_options.update(embed_js=False)
      content = c.render_embed()
      assert_in(
          CurrentConfig.ONLINE_HOST,
          content,
          "Embedded JavaScript cannot be closed",
      )
  
file_path: pyecharts/test/test_base.py
imports: from datetime import datetime
  from unittest.mock import patch
  from nose.tools import assert_equal, assert_in, assert_not_in
  from pyecharts.charts import Bar
  from pyecharts.commons import utils
  from pyecharts.datasets import EXTRA
  from pyecharts.options import InitOpts, RenderOpts
  from pyecharts.globals import CurrentConfig
  from pyecharts.charts.base import Base, default
  from pyecharts.options.global_options import AnimationOpts
label_desc: Use image node_id 5 for calling a global function with example usage: test_render_embed_js(_) without return types