code: def test_autoload_template_has_changed() -> None:
      """This is not really a test but a reminder that if you change the
      autoload_nb_js.js template then you should make sure that insertion of
      plots into notebooks is working as expected. In particular, this test was
      created as part of https://github.com/bokeh/bokeh/issues/7125.
      """
      with open(
          join(TOP_PATH, "_templates/autoload_nb_js.js"), mode="rb"
      ) as f:
          current_template_sha256 = compute_sha256(
              _crlf_cr_2_lf_bin(f.read())
          )
          assert (
              pinned_template_sha256 == current_template_sha256
          ), """\
              It seems that the template autoload_nb_js.js has changed.
              If this is voluntary and that proper testing of plots insertion
              in notebooks has been completed successfully, update this test
              with the new file SHA256 signature."""
  
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 4 for calling a global function with example usage: test_autoload_template_has_changed() without return types