'return True if the current frame has a var __tracebackhide__
resolving to True
If __tracebackhide__ is a callable, it gets called with the
ExceptionInfo instance and can decide whether to hide the traceback.
mostly for internal use'

def ishidden(self):

    try:
        tbh = self.frame.f_locals['__tracebackhide__']
    except KeyError:
        try:
            tbh = self.frame.f_globals['__tracebackhide__']
        except KeyError:
            return False
    if py.builtin.callable(tbh):
        return tbh((None if (self._excinfo is None) else self._excinfo()))
    else:
        return tbh
