import tensorflow as tf

  total_accuracy1, total_accuracy5 = (0.0, 0.0)
  num_processed_images = 0
  num_remaining_images = 5000
  top1 = 0
  with tf.compat.v1.Session() as sess:
    sess_graph = tf.compat.v1.Session(graph=graph, config=config)
    
    while num_remaining_images >= batch_size:
      # Reads and preprocess data
      np_images, np_labels = sess.run([images[0], labels[0]])
