code: def _get_js_dependency_version(name: str, local_js_dir: Path) -> str:
      package_json = json.loads(
          Path(
              local_js_dir / name.split("/")[1] / "package.json"
          ).read_text()
      )
      return package_json["version"]
  
imports: from __future__ import annotations
  import dataclasses
  import inspect
  import json
  import re
  import shutil
  import textwrap
  from pathlib import Path
  from typing import Literal
  import gradio
label_desc: Use image node_id 3 for calling a global function with example usage: _get_js_dependency_version(name, local_js_dir) and returns: package_json