def METHOD_NAME(self, job_code_origin):
    docker_image = job_code_origin.repository_origin.container_image
    if not docker_image:
        docker_image = self.image
    if not docker_image:
        raise Exception("No docker image specified by the instance config or repository")
    validate_docker_image(docker_image)
    return docker_image