class_docstr: Hook that requests stop after a specified time.
  
  Parameters
  ----------
  time_running: int
      Maximum time running in seconds
code: def begin(self):
      self._end_time = time.time() + self._time_running
  
imports: import json
  import os
  import time
  import tensorflow
  from tensorflow.python.training import session_run_hook
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated
  from tensorlayer.lazy_imports import LazyImport
label_desc: Use image node_id 2 for calling the StopAtTimeHook obj's underlying member method code with example usage: obj.begin() without return types