class_docstr: Base class of debug-wrapper session classes.
  
  Concrete classes that inherit from this class need to implement the abstract
  methods such as on_session_init, on_run_start and on_run_end.
class_docstr_tok: ["Base","class","of","debug-wrapper","session","classes",".","Concrete","classes","that","inherit","from","this","class","need","to","implement","the","abstract","methods","such","as","on_session_init",",","on_run_start","and","on_run_end","."]
docstr: Callback invoked during construction of the debug-wrapper session.
  
  This is a blocking callback.
  The invocation happens right before the constructor ends.
  
  Args:
    request: (`OnSessionInitRequest`) callback request carrying information
      such as the session being wrapped.
  
  Returns:
    An instance of `OnSessionInitResponse`.
docstr_tok: ["Callback","invoked","during","construction","of","the","debug-wrapper","session",".","This","is","a","blocking","callback",".","The","invocation","happens","right","before","the","constructor","ends",".","Args",":","request",":","(","`","OnSessionInitRequest","`",")","callback","request","carrying","information","such","as","the","session","being","wrapped",".","Returns",":","An","instance","of","`","OnSessionInitResponse","`","."]
code: def on_session_init(self, request):
      """Callback invoked during construction of the debug-wrapper session.
  
      This is a blocking callback.
      The invocation happens right before the constructor ends.
  
      Args:
        request: (`OnSessionInitRequest`) callback request carrying information
          such as the session being wrapped.
  
      Returns:
        An instance of `OnSessionInitResponse`.
      """
  
imports: import abc
  import re
  import threading
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.debug.lib import debug_utils
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import stack
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import monitored_session
  from tensorflow.python.util import nest
  from tensorflow.python.util.compat import collections_abc
label_desc: Use image node_id 22 for calling the BaseDebugWrapperSession obj's underlying member method code with example usage: obj.on_session_init(request) without return types