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: Add a tensor filter.
  
  Args:
    filter_name: (`str`) name of the filter.
    tensor_filter: (`callable`) the filter callable. See the doc string of
      `DebugDumpDir.find()` for more details about its signature.
docstr_tok: ["Add","a","tensor","filter",".","Args",":","filter_name",":","(","`","str","`",")","name","of","the","filter",".","tensor_filter",":","(","`","callable","`",")","the","filter","callable",".","See","the","doc","string","of","`","DebugDumpDir.find","(",")","`","for","more","details","about","its","signature","."]
code: def add_tensor_filter(self, filter_name, tensor_filter):
      """Add a tensor filter.
  
      Args:
        filter_name: (`str`) name of the filter.
        tensor_filter: (`callable`) the filter callable. See the doc string of
          `DebugDumpDir.find()` for more details about its signature.
      """
  
      self._tensor_filters[filter_name] = tensor_filter
  
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 4 for calling the LocalCLIDebugWrapperSession obj's underlying member method code with example usage: obj.add_tensor_filter(filter_name, tensor_filter) without return types