class_docstr: An Application is a factory for Document instances.
  
      
class_docstr_tok: ["An","Application","is","a","factory","for","Document","instances","."]
docstr: Creates and initializes a document using the Application's handlers.
  
          
docstr_tok: ["Creates","and","initializes","a","document","using","the","Application","'s","handlers","."]
code: def create_document(self) -> Document:
      """Creates and initializes a document using the Application's handlers."""
      doc = Document()
      self.initialize_document(doc)
      return doc
  
imports: from __future__ import annotations
  import logging
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Any, Awaitable, Callable, ClassVar
  from ..core.types import ID
  from ..document import Document
  from ..settings import settings
label_desc: Use image node_id 7 for calling the Application obj's underlying member method code with example usage: obj.create_document() and returns: doc