human
Complete this python program:
def check_paths(func):
assistant
#Here is the Python program you requested.

    """Ensure that our PEP_REPO_PATH is setup correctly.
    """
    @functools.wraps(func)
    def wrapped(*args, **kwargs):
        if (not hasattr(settings, 'PEP_REPO_PATH')):
            raise ImproperlyConfigured('No    PEP_REPO_PATH    in    settings')
        if (not os.path.exists(settings.PEP_REPO_PATH)):
            raise ImproperlyConfigured('Path    set    as    PEP_REPO_PATH    does    not    exist')
        return func(*args, **kwargs)
    return wrapped