Tensorflow doubt

Please explain the working of tf.nn.in_top_k() in this.

with tf.name_scope(“eval”):
correct = tf.nn.in_top_k(logits, y, 1)
accuracy = tf.reduce_mean(tf.cast(correct, tf.float32))

THANKYOU.