code: def print_failed(self, stream=sys.stderr):
          
          for job_key, job_details in sorted(self.scatter_link.jobs.items()):
              if job_details.status == JobStatus.failed:
                  stream.write("Failed job %s\n  log = %s\n" %
                               (job_key, job_details.logfile))
docs: Print list of the failed jobs