code: def top_k_with_unique(inputs, k):
    unique_inputs = _create_make_unique(tf.cast(inputs, tf.float32))
    top_values, indices = _create_topk_unique(unique_inputs, k)
    top_values = tf.cast(top_values, inputs.dtype)
    return top_values, indices