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

    def transform_function(value):
        return bool(re.match(regexp, value, flags))
    return transform_function

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

def regexp_bool(regexp, flags=0):