human
Here's a good function header given the following:
I wrote the below code

    path = request.path.strip('/')
    if (request.endpoint and ('|item' in request.endpoint)):
        path = path[:path.rfind('/')]
    def strip_prefix(hit):
        return (path[len(hit):] if path.startswith(hit) else path)
    if config.URL_PREFIX:
        path = strip_prefix((config.URL_PREFIX + '/'))
    if config.API_VERSION:
        path = strip_prefix((config.API_VERSION + '/'))
    return path

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

def resource_link():