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

    def _inner(form, fields):
        form.add_class('form-horizontal')
        label_col_class = ('col-sm-%d' % col_label_size)
        col_class = ('col-sm-%d' % (12 - col_label_size))
        offset_class = ('col-sm-offset-%d' % col_label_size)
        parent = CAT()
        for (id, label, controls, help) in fields:
            _help = SPAN(help, _class='help-block')
            _controls = DIV(controls, _help, _class=('%s' % col_class))
            if isinstance(controls, INPUT):
                if (controls['_type'] == 'submit'):
                    controls.add_class('btn    btn-primary')
                    _controls = DIV(controls, _class=('%s    %s' % (col_class, offset_class)))
                if (controls['_type'] == 'button'):
                    controls.add_class('btn    btn-default')
                elif (controls['_type'] == 'file'):
                    controls.add_class('input-file')
                elif (controls['_type'] in ('text', 'password')):
                    controls.add_class('form-control')
                elif (controls['_type'] == 'checkbox'):
                    label['_for'] = None
                    label.insert(0, controls)
                    label.insert(1, '    ')
                    _controls = DIV(DIV(label, _help, _class='checkbox'), _class=('%s    %s' % (offset_class, col_class)))
                    label = ''
                elif isinstance(controls, (SELECT, TEXTAREA)):
                    controls.add_class('form-control')
            elif isinstance(controls, SPAN):
                _controls = P(controls.components, _class=('form-control-static    %s' % col_class))
            elif isinstance(controls, UL):
                for e in controls.elements('input'):
                    e.add_class('form-control')
            elif (isinstance(controls, CAT) and isinstance(controls[0], INPUT)):
                controls[0].add_class('form-control')
            if isinstance(label, LABEL):
                label['_class'] = add_class(label.get('_class'), ('control-label  ...

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

def formstyle_bootstrap3_inline_factory(col_label_size=3):