human
I wrote the below code

    arg_names = util.get_argnames(router.find)
    supports_req = (('req' in arg_names) and (len(arg_names) > 1))
    if supports_req:
        return router.find
    def search_shim(path, req):
        return router.find(path)
    return search_shim

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def make_router_search(router):