code: def should_load_checkpoint():
      """Returns whether the current worker should load checkpoints.
  
      In multi-worker training, if loading checkpoint is requested by user, or
      needed for fault-tolerance, the cluster should load checkpoint but not
      necessarily every worker in the cluster should.
  
      Returns:
          Whether this particular worker in the cluster should load checkpoints.
      """
      return (
          dc_context.get_current_worker_context().experimental_should_init
      )
  
file_path: tensorflow/tensorflow/python/distribute/multi_worker_util.py
imports: from tensorflow.core.protobuf import cluster_pb2
  from tensorflow.python.distribute import distribute_coordinator_context
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 10 for calling a global function with example usage: should_load_checkpoint() and returns: dc_context