human
I wrote the below code

    def _make_bounded_check(bounds):
        (lower, upper) = bounds
        if (lower is None):
            def should_fail(value):
                return (value > upper)
            predicate_descr = ('less    than    or    equal    to    ' + str(upper))
        elif (upper is None):
            def should_fail(value):
                return (value < lower)
            predicate_descr = ('greater    than    or    equal    to    ' + str(lower))
        else:
            def should_fail(value):
                return (not (lower <= value <= upper))
            predicate_descr = ('inclusively    between    %s    and    %s' % bounds)
        template = "%(funcname)s()    expected    a    value    {predicate}    for    argument    '%(argname)s',    but    got    %(actual)s    instead.".format(predicate=predicate_descr)
        return make_check(exc_type=ValueError, template=template, pred=should_fail, actual=repr, funcname=__funcname)
    return _expect_bounded(_make_bounded_check, __funcname=__funcname, **named)

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

def expect_bounded(__funcname=_qualified_name, **named):