def generate_tag()

in tools/ci_build/get_docker_image.py [0:0]


def generate_tag(dockerfile_path, context_path, docker_build_args_str):
    hash_obj = hashlib.sha256()
    hash_obj.update(docker_build_args_str.encode())
    update_hash_with_file(
        make_file_info_from_path(dockerfile_path), hash_obj)
    update_hash_with_directory(
        make_file_info_from_path(context_path), hash_obj)
    return "image_content_digest_{}".format(hash_obj.hexdigest())