code: def validate_version(version: str) -> SyftVersion:
      _ver: SyftVersion
  
      try:
          _ver = SyftVersion(version)
      except InvalidVersion:
          error(f"Error: '{version}' is not a valid version")
          raise Exit(1)
  
      if _ver.match("<0.8.2b27"):
          error(
              f"Error: Minimum supported version is '0.8.2' Got: '{_ver}'"
          )
          raise Exit(1)
  
      if not _ver.valid_version():
          error(f"Error: Version '{_ver}' is not a valid Syft release")
          raise Exit(1)
  
      return _ver
  
imports: from enum import Enum
  from pathlib import Path
  from shutil import rmtree
  import tarfile
  from typing import List
  from typer import Exit
  from typer import Option
  from typing_extensions import Annotated
  from ..core.console import debug
  from ..core.console import error
  from ..core.console import info
  from ..core.console import success
  from ..core.container_engine import ContainerEngine
  from ..core.container_engine import ContainerEngineError
  from ..core.container_engine import Docker
  from ..core.container_engine import Podman
  from ..core.syft_repo import SyftRepo
  from ..core.syft_version import InvalidVersion
  from ..core.syft_version import SyftVersion
label_desc: Use image node_id 2 for calling a global function with example usage: validate_version(version) and returns: _ver