class_docstr: Hook to reset a TPUEstimator computation loop.
  
  This hook shuts down all workers and resets the monitored session loop by
  throwing a CoordinatorResetError.
class_docstr_tok: ["Hook","to","reset","a","TPUEstimator","computation","loop",".","This","hook","shuts","down","all","workers","and","resets","the","monitored","session","loop","by","throwing","a","CoordinatorResetError","."]
code: def __call__(self, run_context, all_workers, lame_workers):
      del run_context, lame_workers
      all_workers.shutdown(exit_code=42)
  
      logging.info("Resetting coordinator.")
      raise CoordinatorResetError()
  
imports: import threading
  import time
  from google.protobuf import text_format
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.util import event_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.tpu.ops import tpu_ops
  from tensorflow.python.training import session_run_hook
  from tensorflow.python.training import training_util
label_desc: Use image node_id 2 for calling the ResetComputation obj's underlying member method code with example usage: obj.__call__(run_context, all_workers, lame_workers) without return types