def verify_base_image(base_image: str) -> str:
    """Helper function which validates whether valid base image passed to Packager.
    Additionally, this function provides the string identifier of the dockerfile
    template to build MAP
    Args:
        base_image (str): potential base image to build MAP docker image
    Returns:
        str: returns string identifier of the dockerfile template to build MAP
        if valid base image provided, returns empty string otherwise
    """
    valid_prefixes = {"nvcr.io/nvidia/cuda": "ubuntu", "nvcr.io/nvidia/pytorch": "pytorch"}

    for prefix, template in valid_prefixes.items():
        if prefix in base_image:
            return template

    return ""