def _is_builtin_module(module):
if (not hasattr(module, '<STR_LIT>')) or  module.__name__ in sys.builtin_module_names:<EOL><INDENT>return True<EOL><DEDENT>if module.__name__ in _stdlib._STD_LIB_MODULES:<EOL><INDENT>return True<EOL><DEDENT>amp = os.path.abspath(module.__file__)<EOL>if '<STR_LIT>' in amp:<EOL><INDENT>return False<EOL><DEDENT>if amp.startswith(_STD_MODULE_DIR):<EOL><INDENT>return True<EOL><DEDENT>if not '<STR_LIT:.>' in module.__name__:<EOL><INDENT>return False<EOL><DEDENT>mn_top = module.__name__.split('<STR_LIT:.>')[<NUM_LIT:0>]<EOL>return mn_top in _stdlib._STD_LIB_MODULES<EOL>
Is builtin or part of standard library