code: def compute_sha256(data):
      sha256 = hashlib.sha256()
      sha256.update(data)
      return sha256.hexdigest()
  
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 2 for calling a global function with example usage: compute_sha256(data) and returns: sha256