def METHOD_NAME(image: str) -> Optional[str]:
    """
    Get corresponding runtime from the base-image parameter
    Expecting 'amazon/{runtime}-base'
    But might also be like 'amazon/{runtime}-provided.al2-base'
    """
    match = re.fullmatch(r"amazon/([a-z0-9.]*)-?([a-z0-9.]*)-base", image)
    if match is None:
        return None
    runtime, base = match.groups()
    if base:
        return f"{runtime} ({base})"
    return runtime