from typing import Tuple


def _parse_saved_model_name(model: str) -> Tuple[str, str, str]:
    """
    Parse the saved model name.

    Args:
        model (str): Saved model name.

    Returns:
        Tuple[str, str, str]: Architecture name, config name, dataset name.
    """
    arch = None
    config = None
    dataset = None
    splits = model.split("_")
    assert len(splits) in [
        3,
    ], f"model must contain 3 under scores (_) but found: {len(splits)}"
    arch, config, dataset = splits
    return arch, config, dataset