def METHOD_NAME(self, x, out_dim):
    with tf.name_scope("fully_connected") as name_scope:
        x = tf.layers.dense(x, out_dim)
    tf.logging.info("image after unit %s: %s", name_scope, x.get_shape())
    return x