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

    inputs *= 255.0
    inputs -= tf.constant([123.68, 116.779, 103.939], dtype=tf.float32)
    pooling_fns = {'avg': slim.avg_pool2d, 'max': slim.max_pool2d}
    pooling_fn = pooling_fns[pooling]
    with tf.variable_scope('vgg_16', [inputs], reuse=reuse) as sc:
        end_points = {}
        def add_and_check_is_final(layer_name, net):
            end_points[('%s/%s' % (sc.name, layer_name))] = net
            return (layer_name == final_endpoint)
        with slim.arg_scope([slim.conv2d], trainable=False):
            net = slim.repeat(inputs, 2, slim.conv2d, 64, [3, 3], scope='conv1')
            if add_and_check_is_final('conv1', net):
                return end_points
            net = pooling_fn(net, [2, 2], scope='pool1')
            if add_and_check_is_final('pool1', net):
                return end_points
            net = slim.repeat(net, 2, slim.conv2d, 128, [3, 3], scope='conv2')
            if add_and_check_is_final('conv2', net):
                return end_points
            net = pooling_fn(net, [2, 2], scope='pool2')
            if add_and_check_is_final('pool2', net):
                return end_points
            net = slim.repeat(net, 3, slim.conv2d, 256, [3, 3], scope='conv3')
            if add_and_check_is_final('conv3', net):
                return end_points
            net = pooling_fn(net, [2, 2], scope='pool3')
            if add_and_check_is_final('pool3', net):
                return end_points
            net = slim.repeat(net, 3, slim.conv2d, 512, [3, 3], scope='conv4')
            if add_and_check_is_final('conv4', net):
                return end_points
            net = pooling_fn(net, [2, 2], scope='pool4')
            if add_and_check_is_final('pool4', net):
                return end_points
            net = slim.repeat(net, 3, slim.conv2d, 512, [3, 3], scope='conv5')
            if add_and_check_is_final('conv5', net):
                return end_points
            net = pooling_fn(net, [2, 2], scope='pool5')
            if add_and_check_is_final('pool5', net):
          ...

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

def vgg_16(inputs, reuse=False, pooling='avg', final_endpoint='fc8'):