human
I wrote the below code

    def inexact_filter(model, query, filter_, satisfied_filters):
        'Apply    an    inexact    filter    to    a    query.\n\n                                :param    model:    the    table    model    in    question\n                                :param    query:    query    to    apply    filters    to\n                                :param    dict    filter_:    describes    this    filter\n                                :param    list    satisfied_filters:    filter_    will    be    added    if    it    is\n                                                                                                                                                            satisfied.\n\n                                :returns:    query    updated    to    add    any    inexact    filters    satisfied\n\n                                '
        column_attr = getattr(model, filter_['name'])
        if filter_['case_sensitive']:
            return query
        if (filter_['comparator'] == 'contains'):
            _WontMatch.check(filter_['value'], column_attr)
            query_term = column_attr.ilike(('%%%s%%' % filter_['value']))
        elif (filter_['comparator'] == 'startswith'):
            _WontMatch.check(filter_['value'], column_attr)
            query_term = column_attr.ilike(('%s%%' % filter_['value']))
        elif (filter_['comparator'] == 'endswith'):
            _WontMatch.check(filter_['value'], column_attr)
            query_term = column_attr.ilike(('%%%s' % filter_['value']))
        else:
            return query
        satisfied_filters.append(filter_)
        return query.filter(query_term)
    def exact_filter(model, query, filter_, satisfied_filters):
        'Apply    an    exact    filter    to    a    query.\n\n                                :param    model:    the    table    model    in    question\n                                :param    query:    query    to    apply    filters    to\n                                :param    dict    filter_:    describes    this   ...

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

def _filter(model, query, hints):