def METHOD_NAME(self, library: "ElementLibrary"):
    library_name = library.get_name()
    if self.__module is None:
        _TaipyLogger._get_logger().info(
            f"Python API for extension library '{library_name}' will not be available. To fix this, import 'taipy.gui.builder' before importing the extension library."
        )
        return
    library_module = getattr(self.__module, library_name, None)
    if library_module is None:
        library_module = types.ModuleType(library_name)
        setattr(self.__module, library_name, library_module)
    for element_name in library.get_elements().keys():
        setattr(
            library_module,
            element_name,
            _ElementApiGenerator().createControlElement(element_name, f"{library_name}.{element_name}"),
        )