code: def testApply(self):
      # Use small batches for tests because the OSS version runs
      # in constrained GPU environment with 1-2GB of memory.
      batch_size = 8
      with tf.Graph().as_default():
          images = tf.placeholder(tf.float32, image_shape(None))
          model = resnet50.ResNet50(data_format())
          predictions = model(images, training=False)
  
          init = tf.global_variables_initializer()
  
          with tf.Session() as sess:
              sess.run(init)
              np_images, _ = random_batch(batch_size)
              out = sess.run(predictions, feed_dict={images: np_images})
              self.assertAllEqual([batch_size, 1000], out.shape)
  
file_path: tensorflow-upstream/tensorflow/python/eager/benchmarks/resnet50/resnet50_graph_test.py
imports: import time
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python.eager.benchmarks.resnet50 import resnet50
label_desc: Use image node_id 1 for calling the ResNet50GraphTest obj's underlying member method code with example usage: obj.testApply() without return types