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