def _invalid_frame(fobj):
fin = fobj.f_code.co_filename<EOL>invalid_module = any([fin.endswith(item) for item in _INVALID_MODULES_LIST])<EOL>return invalid_module or (not os.path.isfile(fin))<EOL>
Select valid stack frame to process.