code: def build_document_from_string(string):
      sentences = []
      paragraphs = []
  
      for line in string.strip().splitlines():
          line = line.lstrip()
          if line.startswith("# "):
              sentences.append(
                  build_sentence(line[2:], is_heading=True)
              )
          elif not line:
              paragraphs.append(Paragraph(sentences))
              sentences = []
          else:
              sentences.append(build_sentence(line))
  
      paragraphs.append(Paragraph(sentences))
      return ObjectDocumentModel(paragraphs)
  
file_path: sumy/tests/utils.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  from os.path import dirname, join, abspath
  from sumy._compat import to_string, to_unicode
  from sumy.models.dom import ObjectDocumentModel, Paragraph, Sentence
  from sumy.nlp.tokenizers import Tokenizer
label_desc: Use image node_id 4 for calling a global function with example usage: build_document_from_string(string) and returns: ObjectDocumentModel