class_docstr: A thread that runs() a function on a device.
class_docstr_tok: ["A","thread","that","runs","(",")","a","function","on","a","device","."]
docstr: Restore thread local summary state from self.
docstr_tok: ["Restore","thread","local","summary","state","from","self","."]
code: def restore_thread_local_summary_state(self):
      """Restore thread local summary state from self."""
      # TODO(slebedev): is this still relevant? the referenced bug is closed.
      summary_state = (
          summary_ops_v2._summary_state
      )  # pylint: disable=protected-access
      summary_state.step = self._summary_step
      summary_state.writer = self._summary_writer
      summary_state.is_recording = self._summary_recording
      summary_state.is_recording_distribution_strategy = (
          self._summary_recording_distribution_strategy
      )
  
imports: import contextlib
  import threading
  import weakref
  from tensorflow.python import pywrap_tfe
  from tensorflow.python.autograph.core import ag_ctx
  from tensorflow.python.autograph.impl import api
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import distribute_utils
  from tensorflow.python.distribute import shared_variable_creator
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import device
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import summary_ops_v2
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import coordinator
  from tensorflow.python.util import traceback_utils
label_desc: Use image node_id 4 for calling the _MirroredReplicaThread obj's underlying member method code with example usage: obj.restore_thread_local_summary_state() without return types