human
I wrote the below code

    def get_coordinate(i):
        return tf.get_variable('x_{}'.format(i), shape=[], dtype=tf.float32, initializer=tf.ones_initializer())
    def build():
        coordinates = [get_coordinate(i) for i in xrange(num_dims)]
        x = tf.concat([tf.expand_dims(c, 0) for c in coordinates], 0)
        return tf.reduce_sum(tf.square(x, name='x_squared'))
    return build

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

def simple_multi_optimizer(num_dims=2):