<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def library(self) -> Library: """Return the library object. .. versionadded:: 1.0 Scriptable: Yes """

        assert self.__app.document_model
        return Library(self.__app.document_model)