def __register_library(self, module_name: str, attr: str, fallback: str = None):
<EOL>try:<EOL><INDENT>module = importlib.import_module(module_name)<EOL><DEDENT>except ImportError:<EOL><INDENT>if fallback is not None:<EOL><INDENT>module = importlib.import_module(fallback)<EOL>self.__logger.warn(module_name + "<STR_LIT>" + fallback)<EOL><DEDENT>else:<EOL><INDENT>self.__logger.warn(module_name + "<STR_LIT>")<EOL><DEDENT><DEDENT>if not attr in dir(self.__sketch):<EOL><INDENT>setattr(self.__sketch, attr, module)<EOL><DEDENT>else:<EOL><INDENT>self.__logger.warn(attr +"<STR_LIT>")<EOL><DEDENT>
Inserts Interpreter Library of imports into sketch in a very non-consensual way