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

# 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.
    """
    ...
def is_remote_path(path: str) -> bool:
    """
    Return True when a path is an HTTP(S) URL.
    """
    ...
def prepare_torch_model_for_inference(model: Any.Any.Any, device: Any.Any | None = None) -> Any.Any.Any:
    """
    Move a torch model to the target device and switch to eval mode.
    """
    ...
def resolve_torch_device() -> Any.Any:
    """
    Resolve best available torch device for inference.
    """
    ...
def temporary_file_from_bytes(data: Any) -> Any[str, None, None]:
    """
    Write bytes to a temporary file and clean up when done.
    """
    ...
