class_docstr: Concrete subclass of BaseDebugWrapperSession implementing a local CLI.
  
  This class has all the methods that a `session.Session` object has, in order
  to support debugging with minimal code changes. Invoking its `run()` method
  will launch the command-line interface (CLI) of tfdbg.
class_docstr_tok: ["Concrete","subclass","of","BaseDebugWrapperSession","implementing","a","local","CLI",".","This","class","has","all","the","methods","that","a","`","session.Session","`","object","has",",","in","order","to","support","debugging","with","minimal","code","changes",".","Invoking","its","`","run","(",")","`","method","will","launch","the","command-line","interface","(","CLI",")","of","tfdbg","."]
docstr: Overrides on-run-start callback.
  
  Args:
    request: An instance of `OnRunStartRequest`.
  
  Returns:
    An instance of `OnRunStartResponse`.
docstr_tok: ["Overrides","on-run-start","callback",".","Args",":","request",":","An","instance","of","`","OnRunStartRequest","`",".","Returns",":","An","instance","of","`","OnRunStartResponse","`","."]
code: def on_run_start(self, request):
      """Overrides on-run-start callback.
  
      Args:
        request: An instance of `OnRunStartRequest`.
  
      Returns:
        An instance of `OnRunStartResponse`.
      """
      self._is_run_start = True
      self._update_run_calls_state(
          request.run_call_count,
          request.fetches,
          request.feed_dict,
          is_callable_runner=request.is_callable_runner,
      )
  
      if self._active_tensor_filter:
          # If we are running until a filter passes, we just need to keep running
          # with the previous `OnRunStartResponse`.
          return self._active_tensor_filter_run_start_response
  
      self._exit_if_requested_by_user()
  
      if self._run_call_count > 1 and not self._skip_debug:
          if self._run_through_times > 0:
              # Just run through without debugging.
              return framework.OnRunStartResponse(
                  framework.OnRunStartAction.NON_DEBUG_RUN, []
              )
          elif self._run_through_times == 0:
              # It is the run at which the run-end CLI will be launched: activate
              # debugging.
              return (
                  self._run_start_response
                  or framework.OnRunStartResponse(
                      framework.OnRunStartAction.DEBUG_RUN,
                      self._get_run_debug_urls(),
                  )
              )
  
      if self._run_start_response is None:
          self._prep_cli_for_run_start()
  
          self._run_start_response = self._launch_cli()
          if self._active_tensor_filter:
              self._active_tensor_filter_run_start_response = (
                  self._run_start_response
              )
          if self._run_through_times > 1:
              self._run_through_times -= 1
  
      self._exit_if_requested_by_user()
      return self._run_start_response
  
imports: import argparse
  import os
  import sys
  import tempfile
  from tensorflow.python.debug.cli import analyzer_cli
  from tensorflow.python.debug.cli import cli_config
  from tensorflow.python.debug.cli import cli_shared
  from tensorflow.python.debug.cli import command_parser
  from tensorflow.python.debug.cli import debugger_cli_common
  from tensorflow.python.debug.cli import profile_analyzer_cli
  from tensorflow.python.debug.cli import ui_factory
  from tensorflow.python.debug.lib import common
  from tensorflow.python.debug.lib import debug_data
  from tensorflow.python.debug.wrappers import framework
  from tensorflow.python.lib.io import file_io
label_desc: Use image node_id 6 for calling the LocalCLIDebugWrapperSession obj's underlying member method code with example usage: obj.on_run_start(request) and returns: self, self, framework, unknown