class_docstr: An object holding the states surrounding the dumping callback.
class_docstr_tok: ["An","object","holding","the","states","surrounding","the","dumping","callback","."]
docstr: A callback to be called on creation of ConcreteFunctions.
code: def function_callback(self, function):
      """A callback to be called on creation of ConcreteFunctions."""
      graph_id = self._get_context_id(function.graph)
      with self._context_lock:
          # NOTE(cais): We currently store the function (ConcreteFunction)
          # as keys of this dict, because weakrefs to them sometimes become
          # unreferenceable by the time the op callback is called. This approach
          # may cause memory leaks due to the holding of the functions. If that's
          # the case, calling `tf.debugging.disable_dump_debug_info()` should
          # cause GC of this object and this dict.
          self._function_to_graph_id[function] = graph_id
  
imports: import atexit
  import os
  import re
  import socket
  import threading
  import uuid
  from tensorflow.core.framework import graph_debug_info_pb2
  from tensorflow.core.framework import tensor_pb2
  from tensorflow.core.protobuf import debug_event_pb2
  from tensorflow.python.debug.lib import debug_events_writer
  from tensorflow.python.debug.lib import op_callbacks_common
  from tensorflow.python.debug.lib import source_utils
  from tensorflow.python.eager import function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import op_callbacks
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_debug_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import compat
  from tensorflow.python.util import object_identity
  from tensorflow.python.util import tf_stack
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the _DumpingCallback obj's underlying member method code with example usage: obj.function_callback(function) without return types