code: def _parse_version(version: str) -> Tuple[int, int, int]:
      parts = re.split(r"[^\d]", version, maxsplit=3)
      major = int(parts[0])
      minor = int(parts[1]) if len(parts) >= 2 else 0
      patch = int(parts[2]) if len(parts) >= 3 else 0
      return major, minor, patch
  
imports: import ctypes
  import importlib.metadata
  import json
  import os
  import os.path
  import re
  import shutil
  import sys
  from typing import Any, Dict, List, Optional, Tuple
  import warnings
label_desc: Use image node_id 19 for calling a global function with example usage: _parse_version(version) and returns: major,  minor,  patch