human
I wrote the below code

    model = context['model']
    group = model.Group.get(_get_or_bust(data_dict, 'id'))
    if (not group):
        raise NotFound
    obj_type = data_dict.get('object_type', None)
    capacity = data_dict.get('capacity', None)
    _check_access('group_show', context, data_dict)
    q = model.Session.query(model.Member).filter((model.Member.group_id == group.id)).filter((model.Member.state == 'active'))
    if obj_type:
        q = q.filter((model.Member.table_name == obj_type))
    if capacity:
        q = q.filter((model.Member.capacity == capacity))
    trans = authz.roles_trans()
    def translated_capacity(capacity):
        try:
            return trans[capacity]
        except KeyError:
            return capacity
    return [(m.table_id, m.table_name, translated_capacity(m.capacity)) for m in q.all()]

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

def member_list(context, data_dict=None):