code: def test_dont_start_script_on_same_line_after_another_ends(
      mode: ResourcesMode,
  ) -> None:
      lines = get_html_lines(mode)
      for line in lines:
          if "<script" in line and "</script" in line:
              assert line.rfind("<script") < line.rfind("</script")
  
file_path: bokeh/tests/unit/bokeh/core/test_templates.py
imports: from __future__ import annotations
  import pytest
  import hashlib
  import re
  import sys
  from os.path import abspath, join, split
  from bokeh.embed import file_html
  from bokeh.plotting import figure
  from bokeh.resources import Resources, ResourcesMode
  import bokeh.core.templates
label_desc: Use image node_id 6 for calling a global function with example usage: test_dont_start_script_on_same_line_after_another_ends(mode) without return types