code: def get_text(self):
      if len(self.page_content) > 0:
          return "\n".join(self.page_content)
      else:
          raise Exception("You must run `extract_text()` first.")
  
file_path: doc2text/doc2text/__init__.py
imports: import os
  import mimetypes
  import PyPDF2
  import PythonMagick
  import cv2
  from .page import Page
label_desc: Use image node_id 5 for calling the Document obj's underlying member method code with example usage: obj.get_text() and returns: str