code: def get_html_lines(resource_mode: ResourcesMode) -> list[str]:
      p = figure()
      p.scatter(x=[], y=[])
      html = file_html(p, resources=Resources(resource_mode))
      return html.split("\n")
  
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 3 for calling a global function with example usage: get_html_lines(resource_mode) and returns: html