"""Auto-generated stub for module: io_utils."""
from typing import Any, Optional

# Functions
def download_remote_file(url: str) -> str:
    """
    Download a remote artifact into a temporary file and return its local path.
    
        The file is intentionally not auto-deleted because model runtimes can keep
        lazy references to checkpoint files after constructor return.
    
        Args:
            url: Remote URL for the artifact to download.
            suffix: Suffix used when creating temporary file name.
            timeout_seconds: Per-request timeout passed to ``requests.get``.
            retries: Number of retry attempts after the initial try.
    
        Returns:
            Local filesystem path to the downloaded temporary file.
    """
    ...
def is_remote_path(path: str) -> bool:
    """
    Return whether a path points to an HTTP(S) resource.
    
        Args:
            path: Input path or URL string to inspect.
    
        Returns:
            ``True`` when the scheme is HTTP or HTTPS, otherwise ``False``.
    """
    ...
def prepare_torch_model_for_inference(model: Any.Any.Any, device: Any.Any | None = None) -> Any.Any.Any:
    """
    Move a torch model to target device and switch to eval mode.
    
        Args:
            model: Torch module to prepare for inference.
            device: Optional explicit target device.
    
        Returns:
            Inference-ready model moved to the resolved device.
    """
    ...
def resolve_torch_device() -> Any.Any:
    """
    Resolve best available torch device for inference.
    
        Args:
            None.
    
        Returns:
            ``torch.device("cuda")`` when CUDA is available, else CPU device.
    """
    ...
def temporary_file_from_bytes(data: Any) -> Any[str, None, None]:
    """
    Write bytes to a temporary file and clean it up on exit.
    
        Args:
            data: Raw bytes to write into the temporary file.
            suffix: Filename suffix used for the temporary file.
    
        Returns:
            Context manager yielding the temporary file path.
    """
    ...
