(path)
return path_match
Given the path of an incoming request, create a function that can be used to
    check whether a pattern matches the path.
Given the path of an incoming request, create a function that can be used to
    check whether a pattern matches the path.
Given the path of an incoming request create a function that can be used to check whether a pattern matches the path .
def create_path_match_function(path):
    """
    Given the path of an incoming request, create a function that can be used to
    check whether a pattern matches the path.
    """

    def path_match(pattern):
        return search_path(pattern, path) is not None

    return path_match
def create_path_match_function ( path ) : def path_match ( pattern ) : return search_path ( pattern , path ) is not None return path_match