code: def package_dir() -> Path:
      return (
          Path(__file__)
          .parents[1]
          .joinpath("sampledata", "_data")
          .resolve()
      )
  
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 8 for calling a global function with example usage: package_dir() and returns: Path