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 begin(self):
      self._global_step_tensor = training_util.get_global_step()
      if self._global_step_tensor is None:
          raise RuntimeError(
              "Global step should be created to use StepCounterHook."
          )
  
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 2 for calling the ExamplesPerSecondHook obj's underlying member method code with example usage: obj.begin() without return types