def filter_traceback(entry):
<EOL>raw_filename = entry.frame.code.raw.co_filename<EOL>is_generated = "<STR_LIT:<>" in raw_filename and "<STR_LIT:>>" in raw_filename<EOL>if is_generated:<EOL><INDENT>return False<EOL><DEDENT>p = py.path.local(entry.path)<EOL>return (<EOL>not p.relto(_PLUGGY_DIR) and not p.relto(_PYTEST_DIR) and not p.relto(_PY_DIR)<EOL>)<EOL>
Return True if a TracebackEntry instance should be removed from tracebacks:
    * dynamically generated code (no code to show up for it);
    * internal traceback from pytest or its internal libraries, py and pluggy.