code: def _cleanup_tempdir(tempdir):
      
      try:
          shutil.rmtree(tempdir)
      except OSError as err:
          if err.errno != errno.ENOENT:
              raise
docs: Clean up temp directory ignoring ENOENT errors.