code: def _report(self, label, start, num_iters, batch_size):
      avg_time = (time.time() - start) / num_iters
      dev = "gpu" if tf.test.is_gpu_available() else "cpu"
      name = "graph_%s_%s_batch_%d_%s" % (
          label,
          dev,
          batch_size,
          data_format(),
      )
      extras = {"examples_per_sec": batch_size / avg_time}
      self.report_benchmark(
          iters=num_iters, wall_time=avg_time, name=name, extras=extras
      )
  
file_path: tensorflow/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 ResNet50Benchmarks obj's underlying member method code with example usage: obj._report(label, start, num_iters, batch_size) without return types