code: def get_sri_hashes_for_version(version: str) -> Hashes:
      """Report SRI script hashes for a specific version of BokehJS.
  
      Bokeh provides `Subresource Integrity`_ hashes for all JavaScript files that
      are published to CDN for full releases. This function returns a dictionary
      that maps JavaScript filenames to their hashes, for a single version of
      Bokeh.
  
      Args:
          version (str) :
              The Bokeh version to return SRI hashes for. Hashes are only provided
              for full releases, e.g "1.4.0", and not for "dev" builds or release
              candidates.
  
      Returns:
          dict
  
      Raises:
          ValueError: if the specified version does not exist
  
      Example:
  
          The returned dict for a single version will map filenames for that
          version to their SRI hashes:
  
          .. code-block:: python
  
              {
                  'bokeh-1.4.0.js': 'vn/jmieHiN+ST+GOXzRU9AFfxsBp8gaJ/wvrzTQGpIKMsdIcyn6U1TYtvzjYztkN',
                  'bokeh-1.4.0.min.js': 'mdMpUZqu5U0cV1pLU9Ap/3jthtPth7yWSJTu1ayRgk95qqjLewIkjntQDQDQA5cZ',
                  'bokeh-api-1.4.0.js': 'Y3kNQHt7YjwAfKNIzkiQukIOeEGKzUU3mbSrraUl1KVfrlwQ3ZAMI1Xrw5o3Yg5V',
                  'bokeh-api-1.4.0.min.js': '4oAJrx+zOFjxu9XLFp84gefY8oIEr75nyVh2/SLnyzzg9wR+mXXEi+xyy/HzfBLM',
                  'bokeh-tables-1.4.0.js': 'I2iTMWMyfU/rzKXWJ2RHNGYfsXnyKQ3YjqQV2RvoJUJCyaGBrp0rZcWiTAwTc9t6',
                  'bokeh-tables-1.4.0.min.js': 'pj14Cq5ZSxsyqBh+pnL2wlBS3UX25Yz1gVxqWkFMCExcnkN3fl4mbOF8ZUKyh7yl',
                  'bokeh-widgets-1.4.0.js': 'scpWAebHEUz99AtveN4uJmVTHOKDmKWnzyYKdIhpXjrlvOwhIwEWUrvbIHqA0ke5',
                  'bokeh-widgets-1.4.0.min.js': 'xR3dSxvH5hoa9txuPVrD63jB1LpXhzFoo0ho62qWRSYZVdyZHGOchrJX57RwZz8l'
              }
  
      .. _Subresource Integrity: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
  
      """
      if version not in _ALL_SRI_HASHES:
          try:
              with open(ROOT_DIR / "_sri" / f"{version}.json") as f:
                  _ALL_SRI_HASHES[version] = json.load(f)
          except Exception as e:
              raise ValueError(
                  f"Missing SRI hash for version {version}"
              ) from e
      return _ALL_SRI_HASHES[version]
  
imports: from __future__ import annotations
  import logging
  import json
  import os
  import re
  from os.path import relpath
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, ClassVar, Literal, Protocol, TypedDict, Union, cast, get_args
  from .None import __version__
  from .core.templates import CSS_RESOURCES, JS_RESOURCES
  from .core.types import ID, PathLike
  from .model import Model
  from .settings import LogLevel, settings
  from .util.dataclasses import dataclass, field
  from .util.paths import ROOT_DIR
  from .util.token import generate_session_id
  from .util.version import is_full_release
label_desc: Use image node_id 3 for calling a global function with example usage: get_sri_hashes_for_version(version) and returns: _ALL_SRI_HASHES