<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def weight_variable(shape):
 """weight_variable generates a weight variable of a given shape."""

    initial = tf.truncated_normal(shape, stddev=0.1)
    return tf.Variable(initial)