def is_valid_path(path, urlconf=None):
    try:
        resolve(path, urlconf)
        return True
    except Resolver404:
        return False
Return True if the given path resolves against the default URL resolver,
dataset/ETHPy150Open django/django/django/urls/base.py/is_valid_path