class_docstr: Manages the status/heartbeat monitor for a set of workers.
class_docstr_tok: ["Manages","the","status\/heartbeat","monitor","for","a","set","of","workers","."]
docstr: Ping all workers, returning the parsed status results.
docstr_tok: ["Ping","all","workers",",","returning","the","parsed","status","results","."]
code: def ping(self, request=None, timeout_in_ms=60000):
      """Ping all workers, returning the parsed status results."""
      if request is None:
          request = event_pb2.WorkerHeartbeatRequest()
  
      options = config_pb2.RunOptions(timeout_in_ms=timeout_in_ms)
      results = self._session.run(
          self._ops,
          feed_dict={
              self._request_placeholder: request.SerializeToString()
          },
          options=options,
      )
      parsed_results = [
          event_pb2.WorkerHeartbeatResponse.FromString(res_pb)
          for res_pb in results
      ]
      logging.debug("Ping results: %s", parsed_results)
      return parsed_results
  
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 5 for calling the WorkerHeartbeatManager obj's underlying member method code with example usage: obj.ping(request, timeout_in_ms) and returns: parsed_results