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

    def k(obj):
        if regex.search(obj):
            return (1, obj)
        return (0, obj)
    return k

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

def regex_last_key(regex):