from typing import Tuple
import platform


def _select_asset_for_host_platform() -> Tuple[str, str]:
    """Select the correct asset for the host platform."""
    system = platform.system()
    machine = platform.machine()
    bad_machine = False
    if system == 'Darwin':
        bad_machine = machine not in ('arm64', 'x86_64')
    elif system == 'Linux':
        bad_machine = machine != 'x86_64'
    elif system == 'Windows':
        bad_machine = machine != 'x86_64'
    else:
        raise RuntimeError(f"Unsupported system: {system}")
    if bad_machine:
        raise RuntimeError(f"Unsupported {system} machine type: {machine}")
    return system, machine