class_docstr: Hook to print out examples per second.
  
  Total time is tracked and then divided by the total number of steps
  to get the average step time and then batch_size is used to determine
  the running average of examples per second. The examples per second for the
  most recent interval is also logged.
class_docstr_tok: ["Hook","to","print","out","examples","per","second",".","Total","time","is","tracked","and","then","divided","by","the","total","number","of","steps","to","get","the","average","step","time","and","then","batch_size","is","used","to","determine","the","running","average","of","examples","per","second",".","The","examples","per","second","for","the","most","recent","interval","is","also","logged","."]
code: def before_run(self, run_context):  # pylint: disable=unused-argument
      return basic_session_run_hooks.SessionRunArgs(
          self._global_step_tensor
      )
  
imports: import collections
  import six
  import tensorflow
  from tensorflow.python.platform import tf_logging
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import device
  from tensorflow.python.training import basic_session_run_hooks
  from tensorflow.python.training import session_run_hook
  from tensorflow.python.training import training_util
  from tensorflow.python.training import device_setter
  from tensorflow.contrib.learn.python.learn import run_config
label_desc: Use image node_id 3 for calling the ExamplesPerSecondHook obj's underlying member method code with example usage: obj.before_run(run_context) and returns: basic_session_run_hooks