human
I wrote the below code

    def prep(r):
        resource = r.resource
        mine = r.get_vars.get('mine')
        if (mine == 'a'):
            mine_selector = FS('human_resource_id')
            title_list = T('Actions    assigned    to    me')
        elif (mine == 'r'):
            mine_selector = FS('case_activity_id$human_resource_id')
            title_list = T('Actions    managed    by    me')
        else:
            mine_selector = None
        if mine_selector:
            human_resource_id = auth.s3_logged_in_human_resource()
            if human_resource_id:
                resource.add_filter((mine_selector == human_resource_id))
            else:
                resource.add_filter(mine_selector.belongs(set()))
            s3.crud_strings[resource.tablename]['title_list'] = title_list
        resource.configure(insertable=False, deletable=False)
        return True
    s3.prep = prep
    return s3_rest_controller()

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

def response_action():