code: def metadata() -> dict[str, str]:
      with (Path(__file__).parent / "sampledata.json").open("rb") as f:
          return dict(json.load(f))
  
imports: from __future__ import annotations
  import hashlib
  import json
  from os.path import splitext
  from pathlib import Path
  from sys import stdout
  from typing import TYPE_CHECKING, Any, TextIO
  from urllib.parse import urljoin
  from urllib.request import urlopen
label_desc: Use image node_id 3 for calling a global function with example usage: metadata() and returns: dict