code: def _parse_version(version: str) -> tuple[int, int, int]:
      """Convert a version string to a tuple of integers."""
      match = VERSION_SEARCH.search(version)
      if not match:
          raise SystemExit(
              f"PROJ version unable to be determined from {version}. "
              "Please set the PROJ_VERSION environment variable."
          )
      return tuple(
          int(ver)
          for ver in match.groupdict()["version"].split(".", maxsplit=2)
      )
  
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 1 for calling a global function with example usage: _parse_version(version) and returns: tuple