class_docstr: An object holding the states surrounding the dumping callback.
class_docstr_tok: ["An","object","holding","the","states","surrounding","the","dumping","callback","."]
docstr: Process stack frames.
  
  Send the content of source-files, on a best-effort basis.
  
  Returns:
    A list of stack frame IDs.
code: def _process_stack_frames(self):
      """Process stack frames.
  
      Send the content of source-files, on a best-effort basis.
  
      Returns:
        A list of stack frame IDs.
      """
      stack_frames = tf_stack.extract_stack()
      stack_frame_ids = []
      writer = None
      for file_path, lineno, func, _ in stack_frames:
          abs_path = os.path.abspath(file_path)
          if (abs_path, lineno, func) in self._stack_frame_to_id:
              stack_frame_ids.append(
                  self._stack_frame_to_id[(abs_path, lineno, func)]
              )
              continue
          with self._stack_frame_to_id_lock:
              if (
                  abs_path,
                  lineno,
                  func,
              ) not in self._stack_frame_to_id:
                  stack_frame_id = _get_id()
                  self._stack_frame_to_id[
                      (abs_path, lineno, func)
                  ] = stack_frame_id
                  file_index = self._write_source_file_content(abs_path)
                  file_line_col = (
                      graph_debug_info_pb2.GraphDebugInfo.FileLineCol(
                          file_index=file_index, line=lineno, func=func
                      )
                  )
                  stack_frame_with_id = (
                      debug_event_pb2.StackFrameWithId(
                          id=stack_frame_id, file_line_col=file_line_col
                      )
                  )
                  writer = self.get_writer()
                  writer.WriteStackFrameWithId(stack_frame_with_id)
              stack_frame_ids.append(
                  self._stack_frame_to_id[(abs_path, lineno, func)]
              )
  
      code_location = debug_event_pb2.CodeLocation(
          host_name=self._hostname, stack_frame_ids=stack_frame_ids
      )
      return code_location
  
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 12 for calling the _DumpingCallback obj's underlying member method code with example usage: obj._process_stack_frames() and returns: code_location