class_docstr: Modified Pdb class, does not load readline.
  
  for a standalone version that uses prompt_toolkit, see
  `IPython.terminal.debugger.TerminalPdb` and
  `IPython.terminal.debugger.set_trace()`
  
  
  This debugger can hide and skip frames that are tagged according to some predicates.
  See the `skip_predicates` commands.
class_docstr_tok: ["Modified","Pdb","class",",","does","not","load","readline",".","for","a","standalone","version","that","uses","prompt_toolkit",",","see","`","IPython.terminal.debugger.TerminalPdb","`","and","`","IPython.terminal.debugger.set_trace","(",")","`","This","debugger","can","hide","and","skip","frames","that","are","tagged","according","to","some","predicates",".","See","the","`","skip_predicates","`","commands","."]
docstr: Given a frame return whether it it should be hidden or not by IPython.
docstr_tok: ["Given","a","frame","return","whether","it","it","should","be","hidden","or","not","by","IPython","."]
code: def _hidden_predicate(self, frame):
      """
      Given a frame return whether it it should be hidden or not by IPython.
      """
  
      if self._predicates["readonly"]:
          fname = frame.f_code.co_filename
          # we need to check for file existence and interactively define
          # function would otherwise appear as RO.
          if os.path.isfile(fname) and not os.access(fname, os.W_OK):
              return True
  
      if self._predicates["tbhide"]:
          if frame in (
              self.curframe,
              getattr(self, "initial_frame", None),
          ):
              return False
          frame_locals = self._get_frame_locals(frame)
          if "__tracebackhide__" not in frame_locals:
              return False
          return frame_locals["__tracebackhide__"]
      return False
  
imports: import inspect
  import linecache
  import sys
  import re
  import os
  from IPython import get_ipython
  from contextlib import contextmanager
  from IPython.utils import PyColorize
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from pdb import Pdb
label_desc: Use image node_id 4 for calling the Pdb obj's underlying member method code with example usage: obj._hidden_predicate(frame) and returns: False, frame_locals, True, False, False