class_docstr: Hook that requests stop after a specified time.
  
  Parameters
  ----------
  time_running: int
      Maximum time running in seconds
code: def __init__(self, time_running):
      self._time_running = time_running
      self._end_time = 0
  
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 1 to create a new StopAtTimeHook object from inherited base classes: session_run_hook with example: obj = StopAtTimeHook(time_running)