code: def get_proj_version(proj_dir: Path) -> tuple[int, int, int]:
      """
      Determine PROJ version.
  
      Prefer PROJ_VERSION environment variable.
      If PROJ_VERSION is not set, try to determine the version from the PROJ executable.
      """
      proj_version = os.environ.get("PROJ_VERSION")
      if proj_version:
          return _parse_version(proj_version)
      proj = proj_dir / "bin" / "proj"
      proj_ver = subprocess.check_output(
          str(proj), stderr=subprocess.STDOUT
      ).decode("ascii")
      match = PROJ_VERSION_SEARCH.search(proj_ver)
      if not match:
          raise SystemExit(
              "PROJ version unable to be determined. "
              "Please set the PROJ_VERSION environment variable."
          )
      return _parse_version(match.groupdict()["version"])
  
file_path: pyproj/setup.py
imports: import os
  import platform
  import re
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  from setuptools import Extension, setup
label_desc: Use image node_id 2 for calling a global function with example usage: get_proj_version(proj_dir) and returns: _parse_version, _parse_version