class_docstr: A thread that runs() a function on a device.
class_docstr_tok: ["A","thread","that","runs","(",")","a","function","on","a","device","."]
code: def record_thread_local_eager_context_state(self):
      ctx = context.context()
      eager_context_state = (
          ctx._thread_local_data
      )  # pylint: disable=protected-access
      self._eager_context_op_callbacks = (
          eager_context_state.op_callbacks
      )
  
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 5 for calling the _MirroredReplicaThread obj's underlying member method code with example usage: obj.record_thread_local_eager_context_state() without return types