def in_importlib(frame):
 return (frame.f_code.co_filename == '<frozen importlib._bootstrap>')

def in_importlib ( frame ) : return ( frame . f_code . co_filename == '<frozen importlib._bootstrap>' )
helper for checking if a filename is in importlib guts .