code: def begin(self):
      self._global_step_tensor = tf.train.get_or_create_global_step()
      if self._global_step_tensor is None:
          raise RuntimeError(
              "Global step should be created to use StopAtStepHook."
          )
      self._epoch_tensor = (
          self._global_step_tensor
          * tf.constant(self._num_examples_per_epoch)
      ) / tf.constant(self._global_batch_size)
  
imports: import delta.compat
  from bisect import bisect_right
  from absl import logging
label_desc: Use image node_id 3 for calling the EpochHook obj's underlying member method code with example usage: obj.begin() without return types