def METHOD_NAME(tags: List[Dict[str, Any]]):
    """
    Look through all the docker tags, find the most recent one which references
    a commit that is present in the repo
    """
    for tag in tags["results"]:
        shorthash = find_hash_for_tag(tag)
        logging.info(f"Hash '{shorthash}' does not exist in repo")
        if does_commit_exist(shorthash):
            return shorthash, tag
    raise RuntimeError(f"No extant hash found in tags:\n{tags}")