def METHOD_NAME(ecr_client, ver):
    if ver == "latest":
        raise ValueError(
            "We do not support `latest` as image label because ECR cache maybe out of date. Please point to a specific version"
        )
    repository_name = IAMBIC_REPOSITORY_NAME
    try:
        resp = ecr_client.describe_images(
            repositoryName=repository_name, imageIds=[{"imageTag": ver}]
        )
        if len(resp["imageDetails"]) == 0:
            return False
        else:
            return True
    except ecr_client.exceptions.ImageNotFoundException:
        return False