def is_valid_path(path, urlconf=None):
    try:
        resolve(path, urlconf)
        return True
    except Resolver404:
        return False
Helper function to make invoke-tasks execution easier.
dataset/ETHPy150Open django/django/django/urls/base.py/is_valid_path--crossover with--dataset/ETHPy150Open frol/flask-restplus-server-example/tasks/__init__.py/invoke_execute