code: def dump_hash_file(version: str) -> None:
      json_path = SRI_DIR / f"{version}.json"
  
      assert not json_path.exists(), f"{json_path} already exists"
  
      hashes = {}
  
      paths = set(JS_DIR.glob("bokeh*.js")) - set(
          JS_DIR.glob("*.esm.*")
      )
      for path in paths:
          base, _, suffix = path.name.partition(".")
          hashes[f"{base}-{version}.{suffix}"] = compute_single_hash(
              path
          )
  
      with open(json_path, "w") as f:
          json.dump(dict(sorted(hashes.items())), f, indent=2)
  
imports: import json
  import re
  import sys
  from pathlib import Path
  from subprocess import PIPE, Popen
label_desc: Use image node_id 2 for calling a global function with example usage: dump_hash_file(version) without return types