human
I wrote the below code

    if ('target' in kwargs):
        kwargs['jump'] = kwargs.pop('target')
    kwargs.pop('name', None)
    kwargs.pop('state', None)
    for ignore in (list(_STATE_INTERNAL_KEYWORDS) + ['chain', 'save', 'table']):
        if (ignore in kwargs):
            del kwargs[ignore]
    rule = []
    proto = False
    bang_not_pat = re.compile('(!|not)\\s?')
    def maybe_add_negation(arg):
        "\n                                Will    check    if    the    defined    argument    is    intended    to    be    negated,\n                                (i.e.    prefixed    with    '!'    or    'not'),    and    add    a    '!    '    to    the    rule.\n\n                                The    prefix    will    be    removed    from    the    value    in    the    kwargs    dict.\n                                "
        value = str(kwargs[arg])
        if (value.startswith('!') or value.startswith('not')):
            kwargs[arg] = re.sub(bang_not_pat, '', value)
            return '!    '
        return ''
    if ('if' in kwargs):
        rule.append('{0}-i    {1}'.format(maybe_add_negation('if'), kwargs['if']))
        del kwargs['if']
    if ('of' in kwargs):
        rule.append('{0}-o    {1}'.format(maybe_add_negation('of'), kwargs['of']))
        del kwargs['of']
    for proto_arg in ('protocol', 'proto'):
        if (proto_arg in kwargs):
            if (not proto):
                rule.append('{0}-p    {1}'.format(maybe_add_negation(proto_arg), kwargs[proto_arg]))
                proto = True
            del kwargs[proto_arg]
    if ('match' in kwargs):
        match_value = kwargs['match']
        if (not isinstance(match_value, list)):
            match_value = match_value.split(',')
        for match in match_value:
            rule.append('-m    {0}'.format(match))
            if (('name_' in kwargs) and (match.strip() in ('pknock', 'quota2', 'recent'))):
                rule.append('--name    {0}'.format(kwargs['name_']))
                del kwargs['name_']
        del kwargs['match']
    if...

What's a good function header?
 Write me a Python code to fix    will    be    removed    from    the    value    in    the    kwargs    dict?
assistant
#Here is Python code to fix    will    be    removed    from    the    value    in    the    kwargs    dict.

def build_rule(table='filter', chain=None, command=None, position='', full=None, family='ipv4', **kwargs):