human
I wrote the below code

    if ((not our_module) and isinstance(action_id, basestring)):
        if ('.' in action_id):
            our_module = action_id.split('.', 1)[0]
    context = dict((context or {}))
    env = odoo.api.Environment(cr, uid, context)
    def log_test(msg, *args):
        _test_logger.info(('        -    ' + msg), *args)
    datas = {}
    if active_model:
        datas['model'] = active_model
    if active_ids:
        datas['ids'] = active_ids
    if (not wiz_buttons):
        wiz_buttons = []
    if isinstance(action_id, basestring):
        if ('.' in action_id):
            (_, act_xmlid) = action_id.split('.', 1)
        else:
            if (not our_module):
                raise ValueError(('You    cannot    only    specify    action_id    "%s"    without    a    module    name' % action_id))
            act_xmlid = action_id
            action_id = ('%s.%s' % (our_module, action_id))
        action = env.ref(action_id)
        (act_model, act_id) = (action._name, action.id)
    else:
        assert isinstance(action_id, (long, int))
        act_model = 'ir.action.act_window'
        act_id = action_id
        act_xmlid = ('<%s>' % act_id)
    def _exec_action(action, datas, env):
        if (isinstance(action, bool) or ('type' not in action)):
            return
        context = dict(env.context)
        if datas.get('id', False):
            context.update({'active_id': datas.get('id', False), 'active_ids': datas.get('ids', []), 'active_model': datas.get('model', False)})
        context1 = action.get('context', {})
        if isinstance(context1, basestring):
            context1 = safe_eval(context1, dict(context))
        context.update(context1)
        env = env(context=context)
        if (action['type'] in ['ir.actions.act_window', 'ir.actions.submenu']):
            for key in ('res_id', 'res_model', 'view_type', 'view_mode', 'limit', 'search_view', 'auto_search', 'search_view_id'):
                datas[key] = action.get(key, datas.get(key, None))
            view_id = False
            if...

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

def try_report_action(cr, uid, action_id, active_model=None, active_ids=None, wiz_data=None, wiz_buttons=None, context=None, our_module=None):